avoid jumping window contents on load

first
sezanzeb 4 years ago
parent 42c7326e62
commit 57147c0b44

@ -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