fix: add spacing

This commit is contained in:
mostafaei2002 2024-06-12 15:51:41 +03:30
parent f41e6c9647
commit 9949a4c4fb

View file

@ -152,8 +152,17 @@ impl crate::disk::state::Xvb {
ui.vertical_centered(|ui| { ui.vertical_centered(|ui| {
ui.horizontal(|ui| { ui.horizontal(|ui| {
let selected_text = match self.mode {
XvbMode::Auto => "Auto".to_string(),
XvbMode::Hero => "Hero".to_string(),
XvbMode::ManualXvb => "Manual Xvb".to_string(),
XvbMode::ManualP2pool => "Manual P2pool".to_string(),
XvbMode::ManualDonationLevel => "Manual Donation Level".to_string()
};
egui::ComboBox::from_label("") egui::ComboBox::from_label("")
.selected_text(format!("{:?}", self.mode)) .selected_text(selected_text)
.show_ui(ui, |ui| { .show_ui(ui, |ui| {
ui.selectable_value(&mut self.mode, XvbMode::Auto, "Auto"); ui.selectable_value(&mut self.mode, XvbMode::Auto, "Auto");
ui.selectable_value(&mut self.mode, XvbMode::Hero, "Hero"); ui.selectable_value(&mut self.mode, XvbMode::Hero, "Hero");