mirror of
https://github.com/TheFunny/ArisuAutoSweeper
synced 2025-12-16 13:25:13 +00:00
fix: correct tray tooltip
This commit is contained in:
parent
b2ae30b45c
commit
99a82242d7
@ -5,6 +5,7 @@ import logger from '/@/logger';
|
|||||||
import {app, nativeImage, Tray} from 'electron';
|
import {app, nativeImage, Tray} from 'electron';
|
||||||
import {join} from 'node:path';
|
import {join} from 'node:path';
|
||||||
import {isMacintosh} from '@common/utils';
|
import {isMacintosh} from '@common/utils';
|
||||||
|
|
||||||
export const createApp = async () => {
|
export const createApp = async () => {
|
||||||
logger.info('-----createApp-----');
|
logger.info('-----createApp-----');
|
||||||
logger.info('-----createMainWindow-----');
|
logger.info('-----createMainWindow-----');
|
||||||
@ -42,7 +43,7 @@ export const createApp = async () => {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
tray.setToolTip('SRC');
|
tray.setToolTip('AAS');
|
||||||
tray.setContextMenu(contextMenu);
|
tray.setContextMenu(contextMenu);
|
||||||
tray.on('click', () => {
|
tray.on('click', () => {
|
||||||
if (mainWindow?.isVisible()) {
|
if (mainWindow?.isVisible()) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user