Skip to content

Commit

Permalink
fix already disconnected switch_steam_runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
mirkobrombin committed May 28, 2022
1 parent 4c6101f commit 29f5258
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/views/bottle_preferences.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,10 @@ def set_config(self, config):
self.switch_fsr.handler_block_by_func(self.__toggle_fsr)
self.switch_pulse_latency.handler_block_by_func(self.__toggle_pulse_latency)
self.switch_runtime.handler_block_by_func(self.__toggle_runtime)
self.switch_steam_runtime.handler_block_by_func(self.__toggle_steam_runtime)
try:
self.switch_steam_runtime.handler_block_by_func(self.__toggle_steam_runtime)
except TypeError:
pass # already disconnected
self.combo_fsr.handler_block_by_func(self.__set_fsr_level)
self.combo_virt_res.handler_block_by_func(self.__set_virtual_desktop_res)
self.combo_runner.handler_block_by_func(self.__set_runner)
Expand Down Expand Up @@ -423,7 +426,10 @@ def set_config(self, config):
self.switch_fsr.handler_unblock_by_func(self.__toggle_fsr)
self.switch_pulse_latency.handler_unblock_by_func(self.__toggle_pulse_latency)
self.switch_runtime.handler_unblock_by_func(self.__toggle_runtime)
self.switch_steam_runtime.handler_unblock_by_func(self.__toggle_steam_runtime)
try:
self.switch_steam_runtime.handler_unblock_by_func(self.__toggle_steam_runtime)
except TypeError:
pass # already connected
self.combo_fsr.handler_unblock_by_func(self.__set_fsr_level)
self.combo_virt_res.handler_unblock_by_func(self.__set_virtual_desktop_res)
self.combo_runner.handler_unblock_by_func(self.__set_runner)
Expand Down

0 comments on commit 29f5258

Please sign in to comment.