better error handling of block exclusivity

This commit is contained in:
2025-11-22 09:27:02 +00:00
parent 660a478fbb
commit 23b6c879ae
2 changed files with 17 additions and 11 deletions
+6 -2
View File
@@ -256,8 +256,12 @@ impl App {
ui.build_menu(&mut self.settings.block_method);
});
ui.label("Block method");
self.game_networking
.ensure_not_both_blocked_simultaneously(self.settings.block_method);
if let Err(why) = self
.game_networking
.ensure_not_both_blocked_simultaneously(self.settings.block_method)
{
log::warn!("Couldn't ensure block exclusivity: {why}");
};
});
ui.horizontal(|ui| {
ui.add_enabled_ui(