fixing some bugs from last refactor

This commit is contained in:
itdominator 2022-02-11 00:56:30 -06:00
parent 5168079799
commit a58fdda5d3
3 changed files with 10 additions and 6 deletions

View File

@ -26,7 +26,7 @@ class WindowController:
self._windows = []
def set_active_data(self, wid, tid):
def set__wid_and_tid(self, wid, tid):
self._active_window_id = str(wid)
self._active_tab_id = str(tid)
@ -174,7 +174,7 @@ class WindowController:
with open(session_file, 'w') as outfile:
json.dump(windows, outfile, separators=(',', ':'), indent=4)
else:
raise Exception("Window dara corrupted! Can not save session!")
raise Exception("Window data corrupted! Can not save session!")
def load_state(self, session_file = None):
if not session_file:

View File

@ -176,12 +176,13 @@ class View(Settings, FileHandler, Launcher, Icon, Path):
size = len(parts)
return parts[size - 1]
def is_hidden(self):
return self._dir_watcher
def set_is_hidden(self, state):
def set_hiding_hidden(self, state):
self._hide_hidden = state
def is_hiding_hidden(self):
return self._hide_hidden
def get_dot_dots(self):
return self._hash_set(['.', '..'])
@ -203,6 +204,9 @@ class View(Settings, FileHandler, Launcher, Icon, Path):
def get_ungrouped(self):
return self._hash_set(self._ungrouped)
def get_hidden(self):
return self._hash_set(self._hidden)
def get_id(self):
return self._id

View File

@ -53,7 +53,7 @@ class Window:
def list_files_from_views(self):
for view in self._views:
print(view.files)
print(view.get_files())
def get_id(self):