highlight a possible Gtk bug in the code

This commit is contained in:
Martin Wagner 2022-03-29 19:08:25 +02:00
parent 80777db017
commit 07a47d19ce

View File

@ -2692,7 +2692,7 @@ class PlaylistWindow(Gtk.Overlay):
self.add_overlay(self._back_button_revealer)
def _on_show_hide_back_button(self, *args):
visible_range=self._treeview.get_visible_range()
visible_range=self._treeview.get_visible_range() # not always accurate possibly due to a bug in Gtk
if visible_range is None or self._treeview.get_property("selected-path") is None:
self._back_button_revealer.set_reveal_child(False)
else: