mirror of
https://github.com/SoongNoonien/mpdevil.git
synced 2023-08-10 21:12:44 +03:00
fixed "_on_show_audio_format_changed"
This commit is contained in:
parent
46f36f4a4a
commit
ca39c3bed0
@ -3417,8 +3417,11 @@ class AudioFormat(Gtk.Box):
|
|||||||
|
|
||||||
def _on_show_audio_format_changed(self, *args):
|
def _on_show_audio_format_changed(self, *args):
|
||||||
visibility=(self._settings.get_boolean("show-audio-format") and not self._settings.get_property("mini-player"))
|
visibility=(self._settings.get_boolean("show-audio-format") and not self._settings.get_property("mini-player"))
|
||||||
self.set_property("visible", visibility)
|
|
||||||
self.set_property("no-show-all", not(visibility))
|
self.set_property("no-show-all", not(visibility))
|
||||||
|
if visibility:
|
||||||
|
self.show_all()
|
||||||
|
else:
|
||||||
|
self.hide()
|
||||||
|
|
||||||
def _on_disconnected(self, *args):
|
def _on_disconnected(self, *args):
|
||||||
self.set_sensitive(False)
|
self.set_sensitive(False)
|
||||||
|
Loading…
Reference in New Issue
Block a user