Skip to content

Commit b3ee82e

Browse files
committed
Rename methods
1 parent 88ae3b2 commit b3ee82e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/blame_inline.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ def is_applicable(cls, view_settings):
4242
return cls.determine_enablement(view_settings)
4343

4444
def on_selection_modified_async(self):
45-
self.show_inline_blame_handler()
45+
self.restart_timer()
4646

4747
def on_post_save_async(self):
4848
# Redisplay the blame after the file is saved, because there will be
4949
# no call to on_selection_modified_async after save.
50-
self.show_inline_blame_handler()
50+
self.restart_timer()
5151

5252
# Overrides (BaseBlame) ------------------------------------------------------------
5353

@@ -93,14 +93,14 @@ def on_pkg_setting_changed(cls):
9393
if view_is_editor(view)
9494
]
9595
for view in all_editor_views:
96-
ToggleInlineGitBlame.erase_customization(view)
96+
ToggleInlineGitBlame.erase_viewlevel_customization(view)
9797
if not pkg_settings().get(PKG_SETTINGS_KEY_INLINE_BLAME_ENABLED):
9898
view.erase_phantoms(INLINE_BLAME_PHANTOM_SET_KEY)
9999
# Do a dummy modification to the view's settings to induce the ViewEventListener applicability check to happen again.
100100
view.settings().set(cls.__name__, "")
101101
view.settings().erase(cls.__name__)
102102

103-
def show_inline_blame_handler(self):
103+
def restart_timer(self):
104104
self.view.erase_phantoms(INLINE_BLAME_PHANTOM_SET_KEY)
105105
if self.timer:
106106
self.timer.cancel()
@@ -186,5 +186,5 @@ def run(self, edit):
186186
# Overrides end --------------------------------------------------------------------
187187

188188
@classmethod
189-
def erase_customization(cls, view):
189+
def erase_viewlevel_customization(cls, view):
190190
view.settings().erase(cls.VIEW_SETTINGS_KEY_INLINE_BLAME_ENABLED)

0 commit comments

Comments
 (0)