fix: open plain settings from the profile button, navigation only from the rail menu

This commit is contained in:
LukeGus committed 2026-10-06 14:30:49 -05:00
1 parent dbf6c0117f
commit 26a474bb3d
3 files changed
+51 -5

No files matched your search

+4 -1
View File
@@ -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);
}}
>