feat: save window size and resize on startup (#332)

This commit is contained in:
Levi authored and GitHub committed 2024-01-18 15:00:05 +08:00
1 parent a996d57914
commit e548d7e0c9
5 files changed
+81 -6

No files matched your search

+8
View File
@@ -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);
};
}
}