develop #11

Merged
itdominator merged 36 commits from develop into master 2023-09-19 01:11:24 +00:00
2 changed files with 15 additions and 12 deletions
Showing only changes of commit f82541b37a - Show all commits

View File

@ -36,7 +36,6 @@ class FileActionSignalsMixin:
# NOTE: Too lazy to impliment a proper update handler and so just regen store and update tab. # 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 # 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): 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, if eve_type in [Gio.FileMonitorEvent.CREATED, Gio.FileMonitorEvent.DELETED,
Gio.FileMonitorEvent.RENAMED, Gio.FileMonitorEvent.MOVED_IN, Gio.FileMonitorEvent.RENAMED, Gio.FileMonitorEvent.MOVED_IN,
Gio.FileMonitorEvent.MOVED_OUT]: Gio.FileMonitorEvent.MOVED_OUT]:

View File

@ -10,6 +10,10 @@ from gi.repository import Gio
class BottomStatusInfoException(Exception):
...
class BottomStatusInfoWidget: class BottomStatusInfoWidget:
"""docstring for BottomStatusInfoWidget.""" """docstring for BottomStatusInfoWidget."""
@ -80,7 +84,7 @@ class BottomStatusInfoWidget:
cancellable=None) cancellable=None)
file_size = file_info.get_size() file_size = file_info.get_size()
combined_size += file_size combined_size += file_size
except WindowException as e: except BottomStatusInfoException as e:
logger.debug(repr(e)) logger.debug(repr(e))
formatted_size = sizeof_fmt(combined_size) formatted_size = sizeof_fmt(combined_size)