mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-12 23:45:18 +00:00
fix(desktop): window maximized state doesn't persist
This commit is contained in:
parent
618c6da0eb
commit
91d5d1003b
@ -170,12 +170,11 @@ class _SpotubeState extends ConsumerState<Spotube> with WidgetsBindingObserver {
|
||||
prevSize?.height == appWindow.size.height;
|
||||
|
||||
if (localStorage == null || windowSameDimension || kIsMobile) return;
|
||||
if (appWindow.isMaximized) return;
|
||||
localStorage!.setString(
|
||||
LocalStorageKeys.windowSizeInfo,
|
||||
jsonEncode({
|
||||
'width': appWindow.size.width,
|
||||
'height': appWindow.size.height,
|
||||
'width': appWindow.isMaximized ? 0 : appWindow.size.width,
|
||||
'height': appWindow.isMaximized ? 0 : appWindow.size.height,
|
||||
}),
|
||||
);
|
||||
prevSize = appWindow.size;
|
||||
|
Loading…
Reference in New Issue
Block a user