do frameless first

This commit is contained in:
thororen1234 2026-03-03 19:36:05 -05:00
parent b6e779822a
commit d613793dc4
No known key found for this signature in database

View file

@ -78,9 +78,9 @@ if (!IS_VANILLA) {
// work around discord unloading when in background
options.webPreferences.backgroundThrottling = false;
if (settings.mainWindowFrameless && isMainWindow) {
if (settings.frameless) {
options.frame = false;
} else if (settings.frameless) {
} else if (settings.mainWindowFrameless && isMainWindow) {
options.frame = false;
} else if (process.platform === "win32" && settings.winNativeTitleBar) {
delete options.frame;