avoid jumping window contents on load

xkb
sezanzeb 4 years ago committed by sezanzeb
parent 1fd02bea5a
commit ecc95a6b73

@ -101,6 +101,8 @@ class Window:
window = self.get('window')
window.show()
# hide everything until stuff is populated
self.get('wrapper').set_opacity(0)
self.window = window
# if any of the next steps take a bit to complete, have the window
@ -113,6 +115,9 @@ class Window:
self.timeout = GLib.timeout_add(100, self.check_add_row)
# now show the proper finished content of the window
self.get('wrapper').set_opacity(1)
def get(self, name):
"""Get a widget from the window"""
return self.builder.get_object(name)

Loading…
Cancel
Save