added notification config option
parent
1ca0402660
commit
6d515f7a60
|
@ -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
|
||||
|
|
|
@ -14,7 +14,8 @@
|
|||
"public_key": "",
|
||||
"random_bind_ip": false,
|
||||
"use_bootstrap_list": true,
|
||||
"store_plaintext_blocks": true
|
||||
"store_plaintext_blocks": true,
|
||||
"show_notifications": true
|
||||
},
|
||||
|
||||
"plugins": {
|
||||
|
|
Loading…
Reference in New Issue