mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-29 06:35:24 +00:00
fix: open plain settings from the profile button, navigation only from the rail menu
This commit is contained in:
1 parent
dbf6c0117f
commit
26a474bb3d
3 files changed
+51
-5
No files matched your search
@@ -130,6 +130,7 @@ export function AppRail({
|
||||
onOpenTab,
|
||||
onOpenInRightDock,
|
||||
onOpenSettings,
|
||||
onOpenNavigationSettings,
|
||||
onOpenPalette,
|
||||
onLogout,
|
||||
}: {
|
||||
@@ -143,6 +144,8 @@ export function AppRail({
|
||||
onOpenTab?: (type: TabType) => void;
|
||||
onOpenInRightDock?: (view: RailView) => void;
|
||||
onOpenSettings: () => void;
|
||||
/** The rail menu's own entry, which jumps to the navigation settings. */
|
||||
onOpenNavigationSettings: () => void;
|
||||
onOpenPalette?: () => void;
|
||||
onLogout: (options?: { manual?: boolean }) => void;
|
||||
}) {
|
||||
@@ -543,7 +546,7 @@ export function AppRail({
|
||||
<MenuItem
|
||||
icon={<SlidersHorizontal className="size-3" />}
|
||||
onClick={() => {
|
||||
onOpenSettings();
|
||||
onOpenNavigationSettings();
|
||||
setMenuPos(null);
|
||||
}}
|
||||
>
|
||||
|
||||
Reference in new issue
Block a user