mirror of
https://github.com/smartfrigde/armcord.git
synced 2024-08-14 23:56:58 +00:00
Fix behaviour when closed
This commit is contained in:
parent
1c55ed7335
commit
cd5f9ee4db
1 changed files with 3 additions and 4 deletions
7
main.js
7
main.js
|
@ -38,6 +38,7 @@ function createWindow() {
|
|||
{
|
||||
label: "Support Discord Server",
|
||||
click: function () {
|
||||
mainWindow.show();
|
||||
mainWindow.loadURL("https://discord.gg/F25bc4RYDt");
|
||||
},
|
||||
},
|
||||
|
@ -54,15 +55,13 @@ function createWindow() {
|
|||
|
||||
// Emitted when the window is closed.
|
||||
mainWindow.on("close", function (event) {
|
||||
mainWindow = null;
|
||||
});
|
||||
|
||||
mainWindow.on("minimize", function (event) {
|
||||
event.preventDefault();
|
||||
mainWindow.hide();
|
||||
});
|
||||
|
||||
|
||||
mainWindow.on("show", function () {
|
||||
//gives some error todo
|
||||
appIcon.setHighlightMode("always");
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue