Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def do_activate(self):
mark_time("in app activate")
if self.get_active_window() is not None:
self.get_active_window().present()
return
window = Window(self)
mark_time("have window")
self.add_window(window)
mark_time("added window")
window.show()
mark_time("showed window")
GLib.idle_add(mark_time, "in main loop")
mark_time("app activate done")