added notification history plugins
This commit is contained in:
18 files changed
+651
-80
No files matched your search
@@ -10,11 +10,10 @@ import utils.icons as icons
|
||||
from fabric.utils import get_relative_path
|
||||
|
||||
|
||||
|
||||
class TriggerConfig:
|
||||
def __init__(self, config_path: str = None):
|
||||
if config_path is None:
|
||||
config_path = get_relative_path("../../config/launcher.json")
|
||||
config_path = get_relative_path("../../config/json/launcher.json")
|
||||
|
||||
self.config_path = config_path
|
||||
|
||||
@@ -39,8 +38,6 @@ class TriggerConfig:
|
||||
}
|
||||
self.settings = {**default_settings, **self.config.get("settings", {})}
|
||||
|
||||
|
||||
|
||||
def get_trigger_examples(self, trigger: str) -> List[str]:
|
||||
examples = self.launcher_config.get(trigger, {}).get("examples", [])
|
||||
if not examples:
|
||||
@@ -63,9 +60,3 @@ class TriggerConfig:
|
||||
|
||||
def get_all_triggers(self) -> Dict[str, Dict[str, Any]]:
|
||||
return self.launcher_config.copy()
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user