mirror of
https://github.com/lutris/lutris
synced 2024-10-06 07:50:16 +00:00
Fix one more setting-change call to include the state.
This commit is contained in:
parent
f08fb5271a
commit
e9b8d199f4
|
@ -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
|
||||
|
||||
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue