Setting up active state info

This commit is contained in:
itdominator 2021-04-27 22:46:56 -05:00
parent e9bd2440b7
commit 4172713b36
1 changed files with 7 additions and 0 deletions

View File

@ -16,10 +16,17 @@ class WindowController:
self.config_file = CONFIG_PATH + "/session.json"
self.active_window_id = ""
self.active_tab_id = ""
self.windows = []
def set_active_data(self, wid, tid):
self.active_window_id = str(wid)
self.active_tab_id = str(tid)
def get_active_data(self):
return self.active_window_id, self.active_tab_id
def create_window(self):
window = Window()