Fixing hide hidden toggle

This commit is contained in:
itdominator 2022-02-15 17:52:07 -06:00
parent 2622600e92
commit 07714c9cd4
2 changed files with 3 additions and 1 deletions

View File

@ -200,6 +200,6 @@ class TabMixin(WidgetMixin):
def show_hide_hidden_files(self): def show_hide_hidden_files(self):
wid, tid = self.window_controller.get_active_wid_and_tid() wid, tid = self.window_controller.get_active_wid_and_tid()
view = self.get_fm_window(wid).get_view_by_id(tid) view = self.get_fm_window(wid).get_view_by_id(tid)
view.set_is_hidden(not view.is_hidden()) view.set_hiding_hidden(not view.is_hiding_hidden())
view.load_directory() view.load_directory()
self.builder.get_object("refresh_view").released() self.builder.get_object("refresh_view").released()

View File

@ -177,6 +177,8 @@ class View(Settings, FileHandler, Launcher, Icon, Path):
return parts[size - 1] return parts[size - 1]
def set_hiding_hidden(self, state):
self._hide_hidden = state
def is_hiding_hidden(self): def is_hiding_hidden(self):
return self._hide_hidden return self._hide_hidden