mirror of
https://git.srhtnin.garden/sarah/SaraFem.git
synced 2026-10-15 10:23:17 +02:00
Windows support
This commit is contained in:
1 parent
6b2b35f5da
commit
b295db3fb6
9 files changed
+136
-26
No files matched your search
+3
-3
@@ -11,7 +11,7 @@ from typing import Callable
|
||||
import flet as ft
|
||||
|
||||
from Core import (
|
||||
AppConfig, AvailableThemes, ChipButtonStyle, FolderIconBand, InstalledFontFamilies, LoadSharedSettings, Palette,
|
||||
AppConfig, AvailableThemes, ChipButtonStyle, DefaultFiletreeRoot, FolderIconBand, InstalledFontFamilies, LoadSharedSettings, Palette,
|
||||
SharedSettings,
|
||||
)
|
||||
from FolderIcons import FolderIconChoices, FolderIconLabelOverrides
|
||||
@@ -294,7 +294,7 @@ def BuildSettingsDialog(
|
||||
"Devices height", Config.DevicesMinHeight, Config.DevicesMaxHeight
|
||||
)
|
||||
FiletreeSwitch = ft.Switch(label="Show filetree section", value=Config.ShowFiletree)
|
||||
FiletreeRootField = ft.TextField(value=Config.FiletreeRoot, label="Filetree root", hint_text="/")
|
||||
FiletreeRootField = ft.TextField(value=Config.FiletreeRoot, label="Filetree root", hint_text=DefaultFiletreeRoot)
|
||||
FiletreeHeightRow, FiletreeMinHeightField, FiletreeMaxHeightField = _MinMaxRow(
|
||||
"Filetree height", Config.FiletreeMinHeight, Config.FiletreeMaxHeight
|
||||
)
|
||||
@@ -630,7 +630,7 @@ def BuildSettingsDialog(
|
||||
Config.AutoHideEmptyDevices = AutoHideEmptyDevicesSwitch.value
|
||||
Config.ShowFiletree = FiletreeSwitch.value
|
||||
Config.SplitBookmarksFiletreeEvenly = SplitSidebarEvenlySwitch.value
|
||||
Config.FiletreeRoot = FiletreeRootField.value.strip() or "/"
|
||||
Config.FiletreeRoot = FiletreeRootField.value.strip() or DefaultFiletreeRoot
|
||||
|
||||
Config.PreviewSide = GetPreviewSide()
|
||||
Config.ShowPreview = PreviewSwitch.value
|
||||
|
||||
Reference in new issue
Block a user