greatly simplify blocked status by removing temporary failure state

This commit is contained in:
2025-11-22 09:27:02 +00:00
parent 28486174f2
commit 660a478fbb
4 changed files with 20 additions and 69 deletions
+5 -2
View File
@@ -164,8 +164,11 @@ impl App {
BlockMethod::SaveServer => ui.label("Rockstar save server access"),
};
ui.add_space(1.0);
ui.create_indicator_dot(self.game_networking.blocked_status);
self.game_networking.reset_indicator_if_failed();
ui.create_indicator_dot(if self.game_networking.blocked {
colours::RED
} else {
colours::GREEN
});
label
});
ui.allocate_ui_with_layout(
+5 -5
View File
@@ -2,7 +2,6 @@ use crate::{
gui::{
app::{App, WINDOW_SIZE},
tools,
ui_ext::UiExt,
},
util::consts::{
game::{EXE_ENHANCED, EXE_LEGACY},
@@ -30,11 +29,12 @@ impl App {
ui.label(format!("focused: \"{current_title}\""));
});
ui.horizontal(|ui| {
ui.label("blocked_status");
egui::ComboBox::from_id_salt("blocked_status")
.selected_text(self.game_networking.blocked_status.to_string())
ui.label("blocked");
egui::ComboBox::from_id_salt("blocked")
.selected_text(self.game_networking.blocked.to_string())
.show_ui(ui, |ui| {
ui.build_menu(&mut self.game_networking.blocked_status);
ui.selectable_value(&mut self.game_networking.blocked, true, "true");
ui.selectable_value(&mut self.game_networking.blocked, false, "false");
});
});
if ui.add(egui::Button::new("force refresh theme")).clicked() {