From 851c2a9ed1cfc554ae992b96d3c1be36f2ab2891 Mon Sep 17 00:00:00 2001 From: RomainFT Date: Sun, 10 Mar 2024 22:21:16 +0100 Subject: [PATCH] renaming method --- src/image.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/image.py b/src/image.py index 47cc5bd3..f61770ed 100644 --- a/src/image.py +++ b/src/image.py @@ -65,7 +65,7 @@ def __init__(self, window, **kwargs): self.filename = None self._monitoring_disabled = False self._gfile_monitor = None - self._can_reload() + self._update_can_reload_action() # Closing the info bar self.reload_info_bar.connect('close', self.hide_reload_message) @@ -247,7 +247,7 @@ def try_load_file(self, gfile): # ya pas de fenêtre) ouvrir un truc respectant les settings, plutôt # qu'un petit pixbuf corrompu self.try_load_pixbuf(pixbuf) - self._can_reload() + self._update_can_reload_action() def _connect_gfile_monitoring(self): flags = Gio.FileMonitorFlags.WATCH_MOUNTS @@ -264,14 +264,14 @@ def reveal_reload_message(self, *args): if args[3] != Gio.FileMonitorEvent.CHANGED: self._monitoring_disabled = False return - self._can_reload() + self._update_can_reload_action() self.reload_label.set_visible(self.window.get_allocated_width() > 500) self.reload_info_bar.set_visible(True) def hide_reload_message(self, *args): self.reload_info_bar.set_visible(False) - def _can_reload(self): + def _update_can_reload_action(self): self.set_action_sensitivity('reload_file', self.gfile is not None) ############################################################################ @@ -348,7 +348,7 @@ def show_properties(self): def update_image_wide_actions(self): self.update_history_sensitivity() - self._can_reload() + self._update_can_reload_action() ############################################################################ # History management #######################################################