mirror of
https://github.com/hiddify/hiddify-next.git
synced 2026-06-05 21:05:07 +08:00
Calling saveWindowState in onWindow (Resized, Moved, Maximize, Unmaximize) methods
This commit is contained in:
parent
820e4b72eb
commit
3442e521bf
@ -71,6 +71,26 @@ class _WindowWrapperState extends ConsumerState<WindowWrapper> with WindowListen
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
Future<void> onWindowResized() async {
|
||||
await ref.read(windowNotifierProvider.notifier).saveWindowState();
|
||||
}
|
||||
|
||||
@override
|
||||
Future<void> onWindowMoved() async {
|
||||
await ref.read(windowNotifierProvider.notifier).saveWindowState();
|
||||
}
|
||||
|
||||
@override
|
||||
Future<void> onWindowMaximize() async {
|
||||
await ref.read(windowNotifierProvider.notifier).saveWindowState();
|
||||
}
|
||||
|
||||
@override
|
||||
Future<void> onWindowUnmaximize() async {
|
||||
await ref.read(windowNotifierProvider.notifier).saveWindowState();
|
||||
}
|
||||
|
||||
@override
|
||||
void onWindowFocus() {
|
||||
setState(() {});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user