mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2026-01-27 23:10:50 -08:00
feat: put window state into settings folder
This commit is contained in:
parent
cc61a2dfa9
commit
9419794f25
1 changed files with 2 additions and 0 deletions
|
|
@ -24,6 +24,7 @@ import { IWindowService } from './interface';
|
|||
import { isDevelopmentOrTest, isTest } from '@/constants/environment';
|
||||
import { MENUBAR_ICON_PATH } from '@/constants/paths';
|
||||
import { getLocalHostUrlWithActualIP } from '@services/libs/url';
|
||||
import { SETTINGS_FOLDER } from '@/constants/appPaths';
|
||||
|
||||
@injectable()
|
||||
export class Window implements IWindowService {
|
||||
|
|
@ -118,6 +119,7 @@ export class Window implements IWindowService {
|
|||
if (isWindowWithBrowserView) {
|
||||
windowWithBrowserViewState = windowStateKeeper({
|
||||
file: windowName === WindowNames.main ? 'window-state-main-window.json' : 'window-state-menubar.json',
|
||||
path: SETTINGS_FOLDER,
|
||||
defaultWidth: windowDimension[WindowNames.main].width,
|
||||
defaultHeight: windowDimension[WindowNames.main].height,
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue