Skip to content

Commit

Permalink
fix: save current background color if not custom
Browse files Browse the repository at this point in the history
fix: #14428

contributed on behalf of STMicroelectronics

Signed-off-by: Remi Schnekenburger <[email protected]>
  • Loading branch information
rschnekenbu committed Nov 20, 2024
1 parent 8393c35 commit 1c328a6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ export class ElectronMainApplication {
y: bounds.y,
frame: this.useNativeWindowFrame,
screenLayout: this.getCurrentScreenLayout(),
backgroundColor: this.customBackgroundColor
backgroundColor: this.customBackgroundColor ?? electronWindow.getBackgroundColor()
};
this.electronStore.set('windowstate', options);
} catch (e) {
Expand Down

0 comments on commit 1c328a6

Please sign in to comment.