Skip to content

Commit

Permalink
frontend: Use active instead of state property
Browse files Browse the repository at this point in the history
  • Loading branch information
TheEvilSkeleton committed Jul 30, 2023
1 parent c1a7143 commit 8c276f8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions bottles/frontend/windows/gamescope.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def __update(self, config):
self.spin_gamescope_height.set_value(parameters.gamescope_window_height)
self.spin_fps_limit.set_value(parameters.gamescope_fps)
self.spin_fps_limit_no_focus.set_value(parameters.gamescope_fps_no_focus)
self.switch_scaling.set_state(parameters.gamescope_scaling)
self.switch_scaling.set_active(parameters.gamescope_scaling)
self.toggle_borderless.set_active(parameters.gamescope_borderless)
self.toggle_fullscreen.set_active(parameters.gamescope_fullscreen)

Expand All @@ -91,7 +91,7 @@ def __idle_save(self, *_args):
"gamescope_window_height": self.spin_gamescope_height.get_value(),
"gamescope_fps": self.spin_fps_limit.get_value(),
"gamescope_fps_no_focus": self.spin_fps_limit_no_focus.get_value(),
"gamescope_scaling": self.switch_scaling.get_state(),
"gamescope_scaling": self.switch_scaling.get_active(),
"gamescope_borderless": self.toggle_borderless.get_active(),
"gamescope_fullscreen": self.toggle_fullscreen.get_active()}

Expand Down
4 changes: 2 additions & 2 deletions bottles/frontend/windows/vkbasalt.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def __init__(self, parent_window, config, **kwargs):
# If configuration file doesn't exist, set everything to default
else:
self.btn_save.set_sensitive(True)
self.switch_default.set_state(True)
self.switch_default.set_active(True)
self.smaa_edge_detection = "luma"
self.effects_widgets(False)
self.group_effects.set_sensitive(False)
Expand All @@ -146,7 +146,7 @@ def __idle_save(self, *args):
conf = ManagerUtils.get_bottle_path(self.config)

# Apply default settings and close the dialog if default setting is enabled
if self.switch_default.get_state() is True:
if self.switch_default.get_active() is True:
VkBasaltSettings.default = True
VkBasaltSettings.output = False
conf = os.path.join(conf, "vkBasalt.conf")
Expand Down
4 changes: 2 additions & 2 deletions bottles/frontend/windows/vmtouch.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ def __init__(self, window, config, **kwargs):
self.__update(config)

def __update(self, config):
self.switch_cache_cwd.set_state(config.Parameters.vmtouch_cache_cwd)
self.switch_cache_cwd.set_active(config.Parameters.vmtouch_cache_cwd)

def __idle_save(self, *_args):
settings = {"vmtouch_cache_cwd": self.switch_cache_cwd.get_state()}
settings = {"vmtouch_cache_cwd": self.switch_cache_cwd.get_active()}

for setting in settings.keys():
self.manager.update_config(
Expand Down

0 comments on commit 8c276f8

Please sign in to comment.