unmaximize window in mini player mode

This commit is contained in:
Martin Wagner 2020-09-15 19:28:40 +02:00
parent 68160fc4c7
commit 96f89c6c8b

View File

@ -3769,6 +3769,8 @@ class MainWindow(Gtk.ApplicationWindow):
if obj.get_property("mini-player"): if obj.get_property("mini-player"):
self.tmp_saved_size=self.get_size() self.tmp_saved_size=self.get_size()
self._save_action.set_enabled(False) self._save_action.set_enabled(False)
if self.is_maximized():
self.unmaximize()
self.resize(1,1) self.resize(1,1)
else: else:
self._save_action.set_enabled(True) self._save_action.set_enabled(True)