Skip to content

Commit 9e4b15e

Browse files
committed
Remove unnecessary possible_modules config option
1 parent b14b1be commit 9e4b15e

2 files changed

Lines changed: 0 additions & 11 deletions

File tree

aw_qt/config.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
55
import json
66

77
default_settings = {
8-
"possible_modules": json.dumps(["aw-server",
9-
"aw-server-rust",
10-
"aw-watcher-afk",
11-
"aw-watcher-window", ]),
128
"autostart_modules": json.dumps(["aw-server-rust",
139
"aw-server",
1410
"aw-watcher-afk",
@@ -26,5 +22,4 @@ class AwQtSettings:
2622
def __init__(self, testing: bool):
2723
config_section = qt_config["aw-qt" if not testing else "aw-qt-testing"]
2824

29-
self.possible_modules: List[str] = json.loads(config_section["possible_modules"])
3025
self.autostart_modules: List[str] = json.loads(config_section["autostart_modules"])

aw_qt/manager.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -182,12 +182,6 @@ def __init__(self, testing: bool = False) -> None:
182182
self.autostart_modules: Set[str] = set(self.settings.autostart_modules)
183183
self.testing = testing
184184

185-
for name in self.settings.possible_modules:
186-
if _locate_executable(name):
187-
self.modules[name] = Module(name, testing=testing)
188-
else:
189-
logger.warning("Module '{}' not found but was in possible modules".format(name))
190-
# Is this actually a good way to do this? merged from dev/autodetect-modules
191185
self.discover_modules()
192186

193187
def discover_modules(self) -> None:

0 commit comments

Comments
 (0)