fix: remove duplicate themes import and stale submenu from tray
All checks were successful
Build & Release / build (push) Successful in 2m25s
All checks were successful
Build & Release / build (push) Successful in 2m25s
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
1da89ad9a6
commit
a031911156
1 changed files with 0 additions and 30 deletions
|
|
@ -7,7 +7,6 @@ import { version } from "../../package.json";
|
||||||
import { mainWindow, quitApp } from "./window";
|
import { mainWindow, quitApp } from "./window";
|
||||||
import { checkForUpdates } from "./updater";
|
import { checkForUpdates } from "./updater";
|
||||||
import { getThemeFiles, getActiveTheme, applyTheme, cycleTheme, reloadTheme, openThemesFolder } from "./themes";
|
import { getThemeFiles, getActiveTheme, applyTheme, cycleTheme, reloadTheme, openThemesFolder } from "./themes";
|
||||||
import { cycleTheme, getActiveThemeName, getThemeCount, openThemesFolder, reloadThemes } from "./themes";
|
|
||||||
|
|
||||||
// internal tray state
|
// internal tray state
|
||||||
let tray: Tray = null;
|
let tray: Tray = null;
|
||||||
|
|
@ -60,35 +59,6 @@ export function updateTrayMenu() {
|
||||||
type: "normal",
|
type: "normal",
|
||||||
click: () => checkForUpdates(),
|
click: () => checkForUpdates(),
|
||||||
},
|
},
|
||||||
{
|
|
||||||
label: "Themes",
|
|
||||||
type: "submenu",
|
|
||||||
submenu: Menu.buildFromTemplate([
|
|
||||||
{
|
|
||||||
label: `Active: ${getActiveThemeName()}`,
|
|
||||||
type: "normal",
|
|
||||||
enabled: false,
|
|
||||||
},
|
|
||||||
{ type: "separator" },
|
|
||||||
{
|
|
||||||
label: "Next Theme →",
|
|
||||||
type: "normal",
|
|
||||||
enabled: getThemeCount() > 0,
|
|
||||||
click: () => cycleTheme(),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: "Reload Themes",
|
|
||||||
type: "normal",
|
|
||||||
click: () => reloadThemes(),
|
|
||||||
},
|
|
||||||
{ type: "separator" },
|
|
||||||
{
|
|
||||||
label: "Open Themes Folder",
|
|
||||||
type: "normal",
|
|
||||||
click: () => openThemesFolder(),
|
|
||||||
},
|
|
||||||
]),
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
label: "Themes",
|
label: "Themes",
|
||||||
type: "submenu",
|
type: "submenu",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue