Skip to content
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/buskill_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -1418,6 +1418,7 @@ def build_config(self, config):
Config.read( self.bk.CONF_FILE )
Config.setdefaults('buskill', {
'buskill_trigger': 'lock-screen',
'persistent_log': 'False'
})

# TODO: don't hard-code this, pull it from kivy/config.py
Expand Down
2 changes: 1 addition & 1 deletion src/packages/buskill/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ def __init__(self):
# top to make UX *slightly* better for a user who wants to manually
# edit the config file. if we don't do this, then kivy will put it
# below its own settings, making the user scroll a lot to find them
contents = "[buskill]\n"
contents = "[buskill]\npersistent_log = False\n" # Updating the config option
Comment thread
Raihan93-coder marked this conversation as resolved.
Outdated
with open( self.CONF_FILE, 'w' ) as fd:
fd.write( contents )

Expand Down
13 changes: 13 additions & 0 deletions src/packages/buskill/settings_buskill.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,19 @@
"confirmation": ["", "This selection may cause data loss! Are you sure you want to continue?\n\nThe 'soft-shutdown' trigger will immediately cause your computer to shutdown. This could cause you to lose work if, for example, you're writing an email or typing a text document.\n\nAre you sure you want to select the 'soft-shutdown' trigger, despite the risk of data loss?" ],
"options_icons": ["\ue1bf","\ue62a"]
},
{
"icon": "\ue873",
"type": "complex-options",
"title": "Persistent Logging",
"desc": "DO you want to store the log ?",
Comment thread
Raihan93-coder marked this conversation as resolved.
Outdated
"section": "buskill",
"key": "persistent_log",
"options": ["True","False"],
"options_human": ["True","False"],
"options_long": ["Log file will be not deleted after your system restarts","Log file will be deleted once you restart the computer"],
"confirmation": ["Please restart the app so the changes can be implimented","Please restart the app so the changes can be implimented"],
"options_icons": ["\ue161","\ue5cd"]
},
{
"type": "title",
"title": "Look & Feel"
Expand Down
Loading