Skip to content

Commit

Permalink
fix: storage key not found
Browse files Browse the repository at this point in the history
fix #27
  • Loading branch information
MistEO committed Jan 10, 2025
1 parent 9c32f84 commit c2e3ba1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/MaaDebugger/webpage/index_page/master_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ async def connect_adb_control():
.bind_value(app.storage.general, "adb_address")
)

if not app.storage.general["adb_config"]:
if "adb_config" not in app.storage.general or not app.storage.general["adb_config"]:
app.storage.general["adb_config"] = "{}"

adb_config_input = (
Expand Down Expand Up @@ -289,7 +289,7 @@ async def load_resource_control():
"Resource Directory",
placeholder="Separate with newline, eg: C:/M9A/assets/resource/base",
)
.classes('w-96')
.classes("w-96")
.bind_value(app.storage.general, "resource_dir")
)

Expand Down Expand Up @@ -328,7 +328,10 @@ async def run_task_control():
.bind_value(app.storage.general, "task_entry")
)

if not app.storage.general["task_pipeline_override"]:
if (
"task_pipeline_override" not in app.storage.general
or not app.storage.general["task_pipeline_override"]
):
app.storage.general["task_pipeline_override"] = "{}"

pipeline_override_input = (
Expand Down

0 comments on commit c2e3ba1

Please sign in to comment.