mirror of
https://git.srhtnin.garden/sarah/SaraView.git
synced 2026-10-14 18:38:11 +02:00
New/Upload buttons with the file tree, above or below
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
6750f7927f
commit
0450fee42b
6 files changed
+27
-100
No files matched your search
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user