mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-29 06:35:24 +00:00
feat: Allow to disable showing paths to folders (#1274)
https://github.com/Termix-SSH/Support/issues/1274
This commit is contained in:
1 parent
6ce5e78165
commit
d0c25cf183
7 files changed
+46
-1
No files matched your search
@@ -49,6 +49,8 @@ export interface HostSidebarDisplayPreferences {
|
||||
statusColorScheme: StatusColorScheme;
|
||||
/** When true, a host row needs a double click to launch its session. */
|
||||
openOnDoubleClick: boolean;
|
||||
/** When false, nested folders hide the parent-path breadcrumb before their name. */
|
||||
showFolderPaths: boolean;
|
||||
}
|
||||
|
||||
export interface HostSidebarPreferences {
|
||||
@@ -130,6 +132,7 @@ export function defaultHostSidebarPreferences(): HostSidebarPreferences {
|
||||
trayTrigger: "always",
|
||||
statusColorScheme: "accent",
|
||||
openOnDoubleClick: false,
|
||||
showFolderPaths: true,
|
||||
},
|
||||
};
|
||||
}
|
||||
@@ -203,6 +206,10 @@ export function sanitizeHostSidebarPreferences(
|
||||
typeof displayObj.openOnDoubleClick === "boolean"
|
||||
? displayObj.openOnDoubleClick
|
||||
: defaults.display.openOnDoubleClick,
|
||||
showFolderPaths:
|
||||
typeof displayObj.showFolderPaths === "boolean"
|
||||
? displayObj.showFolderPaths
|
||||
: defaults.display.showFolderPaths,
|
||||
};
|
||||
|
||||
return {
|
||||
|
||||
Reference in new issue
Block a user