New/Upload buttons with the file tree, above or below

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
sarahandClaude Opus 5.5 committed 2026-10-13 17:10:21 +02:00
1 parent 6750f7927f
commit 0450fee42b
6 files changed
+27 -100

No files matched your search

+2
View File
@@ -66,6 +66,7 @@ def Main(Page: ft.Page) -> None:
def OnSettingsSaved(Reconnect: bool) -> None:
Tree.visible = Divider.visible = Config.ShowSidebar
Tree.SetEntryButtons(TheBrowser.EntryButtons, Config.NewEntryButtonsAtTop, Update=False)
if Reconnect:
TheApp.Connect() # its listeners reload the tree and the browser
else:
@@ -92,6 +93,7 @@ def Main(Page: ft.Page) -> None:
lambda Category=None: ShowSettings(Category or ("Connection" if TheApp.ConnectError else "General")),
ToggleSidebar)
Tree = Filetree(TheApp, TheBrowser.NavigateTo, TheBrowser.OpenFile)
Tree.SetEntryButtons(TheBrowser.EntryButtons, Config.NewEntryButtonsAtTop, Update=False)
Divider = ResizeHandle(OnDrag, OnDragEnd)
Tree.visible = Divider.visible = Config.ShowSidebar
# STRETCH so the divider gets the full height to be dragged along.