develop #11
|
@ -36,7 +36,6 @@ class FileActionSignalsMixin:
|
|||
# NOTE: Too lazy to impliment a proper update handler and so just regen store and update tab.
|
||||
# Use a lock system to prevent too many update calls for certain instances but user can manually refresh if they have urgency
|
||||
def dir_watch_updates(self, file_monitor, file, other_file=None, eve_type=None, data=None):
|
||||
if eve_type == Gio.FileMonitorEvent.CHANGES_DONE_HINT:
|
||||
if eve_type in [Gio.FileMonitorEvent.CREATED, Gio.FileMonitorEvent.DELETED,
|
||||
Gio.FileMonitorEvent.RENAMED, Gio.FileMonitorEvent.MOVED_IN,
|
||||
Gio.FileMonitorEvent.MOVED_OUT]:
|
||||
|
|
|
@ -10,6 +10,10 @@ from gi.repository import Gio
|
|||
|
||||
|
||||
|
||||
class BottomStatusInfoException(Exception):
|
||||
...
|
||||
|
||||
|
||||
|
||||
class BottomStatusInfoWidget:
|
||||
"""docstring for BottomStatusInfoWidget."""
|
||||
|
@ -80,7 +84,7 @@ class BottomStatusInfoWidget:
|
|||
cancellable=None)
|
||||
file_size = file_info.get_size()
|
||||
combined_size += file_size
|
||||
except WindowException as e:
|
||||
except BottomStatusInfoException as e:
|
||||
logger.debug(repr(e))
|
||||
|
||||
formatted_size = sizeof_fmt(combined_size)
|
||||
|
|
Loading…
Reference in New Issue