Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
nutti committed Sep 30, 2024
1 parent f986a60 commit 7a4ad87
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/screencast_keys/ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -1501,7 +1501,7 @@ def check_draw_status(cls, context, font_id, layer_name, calc_fn,

# extensions.blender.org: Delete block start
@staticmethod
def _do_auto_save_before_v41():
def do_auto_save_before_v41():
do_auto_save = False
for w in bpy.context.window_manager.windows:
window = cast(
Expand All @@ -1527,7 +1527,7 @@ def _do_auto_save_before_v41():
# extensions.blender.org: Delete block end

@staticmethod
def _do_auto_save_after_v42():
def do_auto_save_after_v42():
do_auto_save = False
wm = bpy.context.window_manager
for window in wm.windows:
Expand Down Expand Up @@ -1564,9 +1564,9 @@ def auto_save(_):
# Perform auto save only if the modal operator is executed from
# Screencast Keys.
if compat.check_version(4, 2, 0) < 0:
do_auto_save = cls._do_auto_save_before_v41()
do_auto_save = cls.do_auto_save_before_v41()
else:
do_auto_save = cls._do_auto_save_after_v42()
do_auto_save = cls.do_auto_save_after_v42()
if do_auto_save is None:
return

Expand Down
1 change: 0 additions & 1 deletion src/screencast_keys/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import bpy

from .ops import show_mouse_hold_status
from .utils import compatibility as compat


class SK_PT_ScreencastKeys(bpy.types.Panel):
Expand Down

0 comments on commit 7a4ad87

Please sign in to comment.