mirror of
https://github.com/DYefremov/DemonEditor.git
synced 2026-05-07 04:56:36 +02:00
preventing size save of the maximized window
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user