Skip to content

Commit

Permalink
Prevent zero overlay height
Browse files Browse the repository at this point in the history
It resets the height of the buttons, but the CSS is set explicitly to zero, breaking anything relying on it.
  • Loading branch information
webfiltered committed Dec 11, 2024
1 parent 0e68247 commit 6259083
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main-process/appWindow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ export class AppWindow {
if (process.platform === 'darwin' || DesktopConfig.store.get('windowStyle') === 'default') return;

if (options.height) options.height = Math.round(options.height);
if (!options.height) delete options.height;
this.window.setTitleBarOverlay(options);
}

Expand Down

0 comments on commit 6259083

Please sign in to comment.