Client: switch local/server from the connection button

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
sarahandClaude Opus 5.5 committed 2026-10-13 17:08:17 +02:00
1 parent 81ebcd66a1
commit 6750f7927f
2 files changed
+23 -3

No files matched your search

+2 -1
View File
@@ -88,7 +88,8 @@ def Main(Page: ft.Page) -> None:
Config.SidebarWidth = int(Tree.width)
Config.Save()
TheBrowser = Browser(TheApp, OnPathChanged, lambda: ShowSettings("Connection" if TheApp.ConnectError else "General"),
TheBrowser = Browser(TheApp, OnPathChanged,
lambda Category=None: ShowSettings(Category or ("Connection" if TheApp.ConnectError else "General")),
ToggleSidebar)
Tree = Filetree(TheApp, TheBrowser.NavigateTo, TheBrowser.OpenFile)
Divider = ResizeHandle(OnDrag, OnDragEnd)