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 cdeb08c commit 5d33e6c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/screencast_keys/utils/compatibility.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ def check_version(major, minor, _):
return 0
if bpy.app.version[0] > major:
return 1
if bpy.app.version[0] < major:
return -1
if bpy.app.version[1] > minor:
return 1
return -1
Expand Down
2 changes: 2 additions & 0 deletions tests/python/screencast_keys_test/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ def check_version(major, minor, _):
return 0
if bpy.app.version[0] > major:
return 1
if bpy.app.version[0] < major:
return -1
if bpy.app.version[1] > minor:
return 1
return -1
Expand Down

0 comments on commit 5d33e6c

Please sign in to comment.