only show save server ip input box sometimes
Co-authored-by: Sapphire <imsapphire0@gmail.com>
This commit is contained in:
+13
-16
@@ -263,22 +263,19 @@ impl App {
|
|||||||
log::warn!("Couldn't ensure block exclusivity: {why}");
|
log::warn!("Couldn't ensure block exclusivity: {why}");
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
ui.horizontal(|ui| {
|
if self.settings.block_method == BlockMethod::SaveServer {
|
||||||
ui.add_enabled_ui(
|
ui.horizontal(|ui| {
|
||||||
self.settings.block_method == BlockMethod::SaveServer,
|
ui.add(
|
||||||
|ui| {
|
egui::TextEdit::singleline(&mut self.settings.save_server_ip)
|
||||||
ui.add(
|
.char_limit(15)
|
||||||
egui::TextEdit::singleline(&mut self.settings.save_server_ip)
|
.desired_width(92.0),
|
||||||
.char_limit(15)
|
);
|
||||||
.desired_width(92.0),
|
ui.label("Save server IP");
|
||||||
);
|
if ui.button("↺").clicked() {
|
||||||
ui.label("Save server IP");
|
self.settings.save_server_ip = String::from(ROCKSTAR_SAVE_SERVER);
|
||||||
if ui.button("↺").clicked() {
|
}
|
||||||
self.settings.save_server_ip = String::from(ROCKSTAR_SAVE_SERVER);
|
});
|
||||||
}
|
}
|
||||||
},
|
|
||||||
);
|
|
||||||
});
|
|
||||||
})
|
})
|
||||||
.response
|
.response
|
||||||
.on_disabled_hover_text("This requires administrator.\nUse the Elevate button.");
|
.on_disabled_hover_text("This requires administrator.\nUse the Elevate button.");
|
||||||
|
|||||||
Reference in New Issue
Block a user