Commit b59a8bbc authored by wudizhanche1000's avatar wudizhanche1000

Tray

parent 530358c9
......@@ -32,7 +32,7 @@
<i (click)="currentWindow.minimize()" class="fa fa-minus"></i>
<i *ngIf="!currentWindow.isMaximized()" (click)="currentWindow.maximize()" class="fa fa-expand"></i>
<i *ngIf="currentWindow.isMaximized()" (click)="currentWindow.unmaximize()" class="fa fa-clone"></i>
<i (click)="window.close()" class="fa fa-times"></i>
<i (click)="currentWindow.hide()" class="fa fa-times"></i>
</div>
</div>
</nav>
......
......@@ -861,7 +861,7 @@
"touhou"
],
"dependencies": {
"win32": [],
"win32": ["directx"],
"darwin": [
"wine"
]
......@@ -1002,7 +1002,7 @@
"touhou"
],
"dependencies": {
"win32": [],
"win32": ["directx"],
"darwin": [
"wine"
]
......@@ -1125,7 +1125,7 @@
"touhou"
],
"dependencies": {
"win32": [],
"win32": ["directx"],
"darwin": [
"wine"
]
......@@ -1266,7 +1266,7 @@
"touhou"
],
"dependencies": {
"win32": [],
"win32": ["directx"],
"darwin": [
"wine"
]
......
......@@ -155,7 +155,7 @@ function createWindow() {
}
function createTray() {
let tray = new Tray(path.join(process.env['NODE_ENV'] == 'production' ? process.resourcesPath : app.getAppPath(), 'images', 'icon.png'));
let tray = new Tray(path.join(process.env['NODE_ENV'] == 'production' ? process.resourcesPath : app.getAppPath(), 'images', 'icon.ico'));
tray.on('click', (event) => {
mainWindow.isVisible() ? mainWindow.hide() : mainWindow.show();
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment