mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-14 20:33:41 +00:00
feat: save window size and resize on startup (#332)
This commit is contained in:
5 files changed
+81
-6
No files matched your search
@@ -143,4 +143,12 @@ class Util {
|
||||
}
|
||||
return completer.future;
|
||||
}
|
||||
|
||||
static void Function() debounce(Function() fn, int ms) {
|
||||
Timer? timer;
|
||||
return () {
|
||||
timer?.cancel();
|
||||
timer = Timer(Duration(milliseconds: ms), fn);
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user