Fix one more setting-change call to include the state.

This commit is contained in:
Daniel Johnson 2023-10-29 18:44:50 -04:00
parent f08fb5271a
commit e9b8d199f4
2 changed files with 2 additions and 3 deletions

View file

@ -1,8 +1,7 @@
from gettext import gettext as _
from gi.repository import Gio, Gtk
from gi.repository import Gtk
from lutris import settings
from lutris.gui.config.base_config_box import BaseConfigBox

View file

@ -1025,7 +1025,7 @@ class LutrisWindow(Gtk.ApplicationWindow,
"""Event handler to toggle badge visibility"""
state = settings.read_setting("hide_badges_on_icons").lower() == "true"
settings.write_setting("hide_badges_on_icons", not state)
self.on_settings_changed(None, "hide_badges_on_icons")
self.on_settings_changed(None, not state, "hide_badges_on_icons")
@watch_errors()
def on_settings_changed(self, dialog, state, setting_key):