fix: lan panel sensitivity

This commit is contained in:
aclist committed 2026-02-14 16:46:44 +09:00
1 parent d4b346006d
commit 2c8e722d8a
8 files changed
+41 -26

No files matched your search

+2 -2
View File
@@ -71,10 +71,10 @@ class ModSelectionPanel(Gtk.Box):
def swap_sensitive(self, state: bool) -> None:
for child in self.stale_panel.get_children():
child.set_sensitive(state)
for child in self.main_panel.get_children():
if child.enum == ModButton.HIGHLIGHT_STALE:
child.set_sensitive(not state)
else:
child.set_sensitive(state)
def _on_button_clicked(self, button: EnumeratedModButton) -> None:
match button.enum: