fix: Submenus get stuck open, closes #2938

This commit is contained in:
Tom Moor
2022-01-15 16:21:39 -08:00
parent bb29dcaccc
commit 49718f2894
3 changed files with 7 additions and 6 deletions

View File

@@ -36,7 +36,8 @@ export const changeToSystemTheme = createAction({
});
export const changeTheme = createAction({
name: ({ t }) => t("Change theme"),
name: ({ t, isContextMenu }) =>
isContextMenu ? t("Appearance") : t("Change theme"),
placeholder: ({ t }) => t("Change theme to"),
icon: () =>
stores.ui.resolvedTheme === "light" ? <SunIcon /> : <MoonIcon />,