fixing some bugs from last refactor
This commit is contained in:
parent
5168079799
commit
a58fdda5d3
|
@ -26,7 +26,7 @@ class WindowController:
|
||||||
self._windows = []
|
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_window_id = str(wid)
|
||||||
self._active_tab_id = str(tid)
|
self._active_tab_id = str(tid)
|
||||||
|
|
||||||
|
@ -174,7 +174,7 @@ class WindowController:
|
||||||
with open(session_file, 'w') as outfile:
|
with open(session_file, 'w') as outfile:
|
||||||
json.dump(windows, outfile, separators=(',', ':'), indent=4)
|
json.dump(windows, outfile, separators=(',', ':'), indent=4)
|
||||||
else:
|
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):
|
def load_state(self, session_file = None):
|
||||||
if not session_file:
|
if not session_file:
|
||||||
|
|
|
@ -176,12 +176,13 @@ class View(Settings, FileHandler, Launcher, Icon, Path):
|
||||||
size = len(parts)
|
size = len(parts)
|
||||||
return parts[size - 1]
|
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
|
self._hide_hidden = state
|
||||||
|
|
||||||
|
def is_hiding_hidden(self):
|
||||||
|
return self._hide_hidden
|
||||||
|
|
||||||
def get_dot_dots(self):
|
def get_dot_dots(self):
|
||||||
return self._hash_set(['.', '..'])
|
return self._hash_set(['.', '..'])
|
||||||
|
|
||||||
|
@ -203,6 +204,9 @@ class View(Settings, FileHandler, Launcher, Icon, Path):
|
||||||
def get_ungrouped(self):
|
def get_ungrouped(self):
|
||||||
return self._hash_set(self._ungrouped)
|
return self._hash_set(self._ungrouped)
|
||||||
|
|
||||||
|
def get_hidden(self):
|
||||||
|
return self._hash_set(self._hidden)
|
||||||
|
|
||||||
def get_id(self):
|
def get_id(self):
|
||||||
return self._id
|
return self._id
|
||||||
|
|
||||||
|
|
|
@ -53,7 +53,7 @@ class Window:
|
||||||
|
|
||||||
def list_files_from_views(self):
|
def list_files_from_views(self):
|
||||||
for view in self._views:
|
for view in self._views:
|
||||||
print(view.files)
|
print(view.get_files())
|
||||||
|
|
||||||
|
|
||||||
def get_id(self):
|
def get_id(self):
|
||||||
|
|
Loading…
Reference in New Issue