Improve Android app UI and controller flows
This commit is contained in:
@@ -35,7 +35,6 @@ DEFAULT_WORKSPACE_ORDER = [
|
||||
"device",
|
||||
"settings",
|
||||
"canvas",
|
||||
"text",
|
||||
"media-import",
|
||||
"animations",
|
||||
"templates",
|
||||
@@ -66,7 +65,7 @@ DEFAULT_CONFIG: dict[str, Any] = {
|
||||
"animation_preview_max_concurrent": DEFAULT_ANIMATION_PREVIEW_MAX_CONCURRENT,
|
||||
}
|
||||
|
||||
CONFIG_SCHEMA_VERSION = 10
|
||||
CONFIG_SCHEMA_VERSION = 11
|
||||
CONFIG_V1_FIELDS = frozenset({
|
||||
"orientation",
|
||||
"brightness",
|
||||
@@ -455,6 +454,12 @@ def _migrate_config_v9_to_v10(document: dict[str, Any]) -> dict[str, Any]:
|
||||
}
|
||||
|
||||
|
||||
def _migrate_config_v10_to_v11(document: dict[str, Any]) -> dict[str, Any]:
|
||||
checked = validate_config(document)
|
||||
checked["workspace_order"] = [item for item in checked["workspace_order"] if item != "text"] or list(DEFAULT_WORKSPACE_ORDER)
|
||||
return checked
|
||||
|
||||
|
||||
CONFIG_MIGRATIONS = {
|
||||
0: _migrate_config_v0_to_v1,
|
||||
1: _migrate_config_v1_to_v2,
|
||||
@@ -466,6 +471,7 @@ CONFIG_MIGRATIONS = {
|
||||
7: _migrate_config_v7_to_v8,
|
||||
8: _migrate_config_v8_to_v9,
|
||||
9: _migrate_config_v9_to_v10,
|
||||
10: _migrate_config_v10_to_v11,
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user