From 4d35f71ddc7174d501c54fd2304be638a3bd0f76 Mon Sep 17 00:00:00 2001 From: DYefremov Date: Mon, 19 Apr 2021 12:30:13 +0300 Subject: [PATCH] preventing size save of the maximized window --- app/ui/main_app_window.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/ui/main_app_window.py b/app/ui/main_app_window.py index 759d6a5c..fde526e2 100644 --- a/app/ui/main_app_window.py +++ b/app/ui/main_app_window.py @@ -673,7 +673,9 @@ class Application(Gtk.Application): def on_close_app(self, *args): """ Performing operations before closing the application. """ # Saving the current size of the application window. - self._settings.add("window_size", self._main_window.get_size()) + self._main_window.unfullscreen() + if not self._main_window.is_maximized(): + self._settings.add("window_size", self._main_window.get_size()) if self._recorder: if self._recorder.is_record():