mirror of
https://github.com/SoongNoonien/mpdevil.git
synced 2023-08-10 21:12:44 +03:00
removed unneeded vars
This commit is contained in:
parent
c4734d80b7
commit
b2cab7b188
12
bin/mpdevil
12
bin/mpdevil
@ -3663,8 +3663,6 @@ class MainWindow(Gtk.ApplicationWindow):
|
|||||||
self._client=client
|
self._client=client
|
||||||
self._settings=settings
|
self._settings=settings
|
||||||
self._use_csd=self._settings.get_boolean("use-csd")
|
self._use_csd=self._settings.get_boolean("use-csd")
|
||||||
self._tmp_saved_size=None # needed to restore size after leaving mini player mode
|
|
||||||
self._tmp_saved_maximized=None # needed to restore maximize state after leaving mini player mode
|
|
||||||
|
|
||||||
# MPRIS
|
# MPRIS
|
||||||
dbus_service=MPRISInterface(self, self._client, self._settings)
|
dbus_service=MPRISInterface(self, self._client, self._settings)
|
||||||
@ -3877,17 +3875,11 @@ class MainWindow(Gtk.ApplicationWindow):
|
|||||||
|
|
||||||
def _on_mini_player(self, obj, typestring):
|
def _on_mini_player(self, obj, typestring):
|
||||||
if obj.get_property("mini-player"):
|
if obj.get_property("mini-player"):
|
||||||
self._tmp_saved_size=self.get_size()
|
if self.is_maximized():
|
||||||
self._tmp_saved_miximized=self.is_maximized()
|
|
||||||
if self._tmp_saved_miximized:
|
|
||||||
self.unmaximize()
|
self.unmaximize()
|
||||||
self.resize(1,1)
|
self.resize(1,1)
|
||||||
else:
|
else:
|
||||||
self.resize(self._tmp_saved_size[0], self._tmp_saved_size[1])
|
self.resize(self._settings.get_int("width"), self._settings.get_int("height"))
|
||||||
if self._tmp_saved_miximized:
|
|
||||||
self.maximize()
|
|
||||||
self._tmp_saved_size=None
|
|
||||||
self._tmp_saved_maximized=None
|
|
||||||
|
|
||||||
def _on_cursor_watch(self, obj, typestring):
|
def _on_cursor_watch(self, obj, typestring):
|
||||||
if obj.get_property("cursor-watch"):
|
if obj.get_property("cursor-watch"):
|
||||||
|
Loading…
Reference in New Issue
Block a user