Fixing hide hidden toggle
This commit is contained in:
parent
2622600e92
commit
07714c9cd4
|
@ -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()
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue