mirror of
https://github.com/A-Star100/simpliplay-desktop.git
synced 2025-09-17 22:29:38 +00:00
Update main.js
This commit is contained in:
parent
96e183e8b2
commit
bb2b25a889
@ -188,6 +188,12 @@ app.whenReady().then(() => {
|
||||
setupMenu();
|
||||
setupShortcuts();
|
||||
|
||||
if (!mainWindow) {
|
||||
createWindow(() => {
|
||||
console.log("Created window");
|
||||
});
|
||||
}
|
||||
|
||||
mainWindow.on("focus", () => {
|
||||
setupShortcuts(); // setupShortcuts() is an existing function made earlier in the code
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user