mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
fix
This commit is contained in:
parent
cda9b8fb42
commit
afa34c74d7
1 changed files with 5 additions and 3 deletions
|
@ -82,7 +82,7 @@ export class WindowManager {
|
|||
}
|
||||
}
|
||||
private static updateInitialConfig(
|
||||
newConfig: Partial<Electron.BrowserViewConstructorOptions>
|
||||
newConfig: Partial<Electron.BrowserWindowConstructorOptions>
|
||||
) {
|
||||
this.initialConfigInitializationMainWindow = {
|
||||
...this.initialConfigInitializationMainWindow,
|
||||
|
@ -203,8 +203,10 @@ export class WindowManager {
|
|||
if (userPreferences?.preferQuitInsteadOfHiding) {
|
||||
app.quit();
|
||||
}
|
||||
if (lastBounds) {
|
||||
const isMaximized = this.mainWindow?.isMaximized() ?? false;
|
||||
|
||||
if (this.mainWindow) {
|
||||
const lastBounds = this.mainWindow.getBounds();
|
||||
const isMaximized = this.mainWindow.isMaximized() ?? false;
|
||||
const screenConfig = isMaximized
|
||||
? {
|
||||
x: undefined,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue