fixed visibility of AudioFormat

This commit is contained in:
Martin Wagner 2021-10-24 09:37:27 +02:00
parent 528c9b1e1e
commit 6854439b80

View File

@ -3153,10 +3153,10 @@ class AudioFormat(Gtk.Box):
super().__init__(spacing=6)
self._client=client
self._settings=settings
self._file_type_label=Gtk.Label(xalign=1)
self._separator_label=Gtk.Label(xalign=1)
self._brate_label=Gtk.Label(xalign=1, width_chars=5)
self._format_label=Gtk.Label()
self._file_type_label=Gtk.Label(xalign=1, visible=True)
self._separator_label=Gtk.Label(xalign=1, visible=True)
self._brate_label=Gtk.Label(xalign=1, width_chars=5, visible=True)
self._format_label=Gtk.Label(visible=True)
# connect
self._settings.connect("changed::mini-player", self._mini_player)
@ -3168,16 +3168,16 @@ class AudioFormat(Gtk.Box):
self._client.emitter.connect("reconnected", self._on_reconnected)
# packing
hbox=Gtk.Box(halign=Gtk.Align.END)
hbox=Gtk.Box(halign=Gtk.Align.END, visible=True)
hbox.pack_start(self._brate_label, False, False, 0)
hbox.pack_start(self._separator_label, False, False, 0)
hbox.pack_start(self._file_type_label, False, False, 0)
vbox=Gtk.Box(orientation=Gtk.Orientation.VERTICAL, valign=Gtk.Align.CENTER)
vbox=Gtk.Box(orientation=Gtk.Orientation.VERTICAL, valign=Gtk.Align.CENTER, visible=True)
vbox.pack_start(hbox, False, False, 0)
vbox.pack_start(self._format_label, False, False, 0)
self.pack_start(Gtk.Separator(), False, False, 0)
self.pack_start(Gtk.Separator(visible=True), False, False, 0)
self.pack_start(vbox, False, False, 0)
self.pack_start(Gtk.Separator(), False, False, 0)
self.pack_start(Gtk.Separator(visible=True), False, False, 0)
self._mini_player()
def _mini_player(self, *args):