added notification config option
This commit is contained in:
parent
1ca0402660
commit
6d515f7a60
2 changed files with 6 additions and 1 deletions
|
@ -24,6 +24,10 @@ except ImportError:
|
|||
else:
|
||||
notifications_enabled = True
|
||||
|
||||
import config
|
||||
|
||||
if not config.get('general.show_notifications', True): notifications_enabled = False
|
||||
|
||||
def notify(title: str = "Onionr", message: str = ""):
|
||||
"""cross platform method to show a notification"""
|
||||
if not notifications_enabled: return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue