avoid jumping window contents on load

This commit is contained in:
sezanzeb 2020-11-16 17:04:04 +01:00
parent 42c7326e62
commit 57147c0b44

View File

@ -101,6 +101,8 @@ class Window:
window = self.get('window') window = self.get('window')
window.show() window.show()
# hide everything until stuff is populated
self.get('wrapper').set_opacity(0)
self.window = window self.window = window
# if any of the next steps take a bit to complete, have the 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) 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): def get(self, name):
"""Get a widget from the window""" """Get a widget from the window"""
return self.builder.get_object(name) return self.builder.get_object(name)