Focus window if opening uri from IPC

This commit is contained in:
itdominator 2022-12-02 22:59:02 -06:00
parent 8c595bdf0c
commit d91266886f
1 changed files with 5 additions and 0 deletions

View File

@ -14,6 +14,11 @@ class IPCSignalsMixin:
print(message)
def handle_file_from_ipc(self, path):
window = self.builder.get_object("main_window")
window.deiconify()
window.show()
window.present()
wid, tid = self.fm_controller.get_active_wid_and_tid()
notebook = self.builder.get_object(f"window_{wid}")
if notebook.is_visible():