only show save server ip input box sometimes
Co-authored-by: Sapphire <imsapphire0@gmail.com>
This commit is contained in:
+2
-5
@@ -263,10 +263,8 @@ impl App {
|
|||||||
log::warn!("Couldn't ensure block exclusivity: {why}");
|
log::warn!("Couldn't ensure block exclusivity: {why}");
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
if self.settings.block_method == BlockMethod::SaveServer {
|
||||||
ui.horizontal(|ui| {
|
ui.horizontal(|ui| {
|
||||||
ui.add_enabled_ui(
|
|
||||||
self.settings.block_method == BlockMethod::SaveServer,
|
|
||||||
|ui| {
|
|
||||||
ui.add(
|
ui.add(
|
||||||
egui::TextEdit::singleline(&mut self.settings.save_server_ip)
|
egui::TextEdit::singleline(&mut self.settings.save_server_ip)
|
||||||
.char_limit(15)
|
.char_limit(15)
|
||||||
@@ -276,9 +274,8 @@ impl App {
|
|||||||
if ui.button("↺").clicked() {
|
if ui.button("↺").clicked() {
|
||||||
self.settings.save_server_ip = String::from(ROCKSTAR_SAVE_SERVER);
|
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