feat: set start tab

This commit is contained in:
aclist committed 2026-05-05 18:31:50 +09:00
1 parent ce44d67bf6
commit 73d131a64b
9 files changed
+75 -31

No files matched your search

+6 -5
View File
@@ -34,7 +34,7 @@ def rc2json(file: Path) -> str:
lex = shlex.shlex(f.read())
lex.whitespace += "="
d = {}
keys = {}
ips: list[str] = []
toggles = ["auto_install", "fullscreen"]
@@ -69,8 +69,9 @@ def rc2json(file: Path) -> str:
if not tok:
break
d[tok] = ntok
keys[tok] = ntok
d["ip_list"] = ips
d["use_miles"] = False
return json.dumps(d, indent=2)
keys["ip_list"] = ips
keys["use_miles"] = False
keys["start_tab"] = 0
return json.dumps(keys, indent=2)