Skip to content

Commit 924ca98

Browse files
committed
s/trigger/buskill_trigger in Config
This commit replaces the Config item name "buskill" with "buskill_trigger" Apparently I silently renamed this option in the Config file some months ago when I was switching the Settings screen to use RecycleView, for the font accessibility feature * #55 (comment) I don't know exactly why I made the change, but apparently I already updated it in other places, except here. The result: a bug where the first time you "arm" BusKill, it always defaulted to the 'lock-screen' trigger, instead of the setting the user already set it to. * #77 (comment)
1 parent 44b6de8 commit 924ca98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/packages/buskill/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -944,8 +944,8 @@ def toggle(self):
944944
# set the default trigger to what's defined in the config file
945945
self.config = configparser.ConfigParser()
946946
self.config.read( self.CONF_FILE )
947-
if self.config.has_option('buskill', 'trigger'):
948-
trigger = self.config.get('buskill', 'trigger')
947+
if self.config.has_option('buskill', 'buskill_trigger'):
948+
trigger = self.config.get('buskill', 'buskill_trigger')
949949
else:
950950
trigger = 'lock-screen'
951951
self.set_trigger( trigger )

0 commit comments

Comments
 (0)