added notification config option
This commit is contained in:
parent
1ca0402660
commit
6d515f7a60
@ -24,6 +24,10 @@ except ImportError:
|
|||||||
else:
|
else:
|
||||||
notifications_enabled = True
|
notifications_enabled = True
|
||||||
|
|
||||||
|
import config
|
||||||
|
|
||||||
|
if not config.get('general.show_notifications', True): notifications_enabled = False
|
||||||
|
|
||||||
def notify(title: str = "Onionr", message: str = ""):
|
def notify(title: str = "Onionr", message: str = ""):
|
||||||
"""cross platform method to show a notification"""
|
"""cross platform method to show a notification"""
|
||||||
if not notifications_enabled: return
|
if not notifications_enabled: return
|
||||||
|
@ -14,7 +14,8 @@
|
|||||||
"public_key": "",
|
"public_key": "",
|
||||||
"random_bind_ip": false,
|
"random_bind_ip": false,
|
||||||
"use_bootstrap_list": true,
|
"use_bootstrap_list": true,
|
||||||
"store_plaintext_blocks": true
|
"store_plaintext_blocks": true,
|
||||||
|
"show_notifications": true
|
||||||
},
|
},
|
||||||
|
|
||||||
"plugins": {
|
"plugins": {
|
||||||
|
Loading…
Reference in New Issue
Block a user