mirror of
https://github.com/sezanzeb/input-remapper
synced 2024-11-04 12:00:16 +00:00
avoid jumping window contents on load
This commit is contained in:
parent
42c7326e62
commit
57147c0b44
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user