mirror of
https://github.com/fanchenio/DawnLauncher.git
synced 2025-07-14 05:12:11 +08:00
优化右键菜单'以管理员身份运行'功能,改为右键时动态判断文件是否有此权限。
This commit is contained in:
parent
2ba01403a5
commit
0ad813a315
@ -24,6 +24,8 @@ let mainWindow: BrowserWindow | null = null;
|
|||||||
* 主窗口
|
* 主窗口
|
||||||
*/
|
*/
|
||||||
function createMainWindow() {
|
function createMainWindow() {
|
||||||
|
// 预热
|
||||||
|
global.addon.hasRunas(process.execPath);
|
||||||
// 如果窗口存在先关闭窗口
|
// 如果窗口存在先关闭窗口
|
||||||
if (mainWindow && !mainWindow.isDestroyed() && mainWindow.isVisible()) {
|
if (mainWindow && !mainWindow.isDestroyed() && mainWindow.isVisible()) {
|
||||||
mainWindow.close();
|
mainWindow.close();
|
||||||
|
Loading…
Reference in New Issue
Block a user