Skip to content

Commit 12c895a

Browse files
authored
Update README.md
1 parent 24281cc commit 12c895a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Alternative Launchers: https://github.com/unitycoder/UnityLauncherPro/wiki/Alter
1717
- [Custom Styles](#custom-styles)
1818
- [Custom Previews or any html for project template description](#custom-previews-or-any-html-for-project-templates-description)
1919
- [Enable Built-in Login Dialog (no more browser login/logout issues with multiple accounts](#enable-buildin-login-dialog-no-more-browser-loginlogout-issues-with-multiple-accounts)
20+
- [Completely quit Hub when you press X (window close button)](#completely-quit-unity-hub-when-you-press-x-window-close-button)
2021
<br>
2122
<hr>
2223

@@ -70,3 +71,8 @@ Alternative Launchers: https://github.com/unitycoder/UnityLauncherPro/wiki/Alter
7071
- info https://unitycoder.com/blog/2024/04/26/unityhub-enable-builtin-login-dialog-no-more-browser-login-logout-issues/
7172
- ![image](https://github.com/unitycoder/UnityHubModding/assets/5438317/43afdd85-d3f4-491c-9bba-8e1af4b9c9e0)
7273

74+
### Completely quit Unity Hub when you press X (window close button)
75+
- Open baseWindow.js
76+
- add ```const electron_1 = require("electron");``` at the top (next to other require lines)
77+
- Find line ```logger.debug('close event is prevented, browser window will be hidden');```
78+
- add this line after it ```electron_1.app.quit();```

0 commit comments

Comments
 (0)