Skip to content

Commit

Permalink
Fix: Failed to run the add-on on the console mode (#212)
Browse files Browse the repository at this point in the history
(cherry picked from commit 47ad5c0)
  • Loading branch information
Andrej730 authored and nutti committed Sep 28, 2024
1 parent 4ca3a3d commit 61c40cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/screencast_keys/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@


def is_console_mode():
if bpy.app.background:
return True
if "SK_CONSOLE_MODE" not in os.environ:
return False
return os.environ["SK_CONSOLE_MODE"] == "true"
Expand Down

0 comments on commit 61c40cd

Please sign in to comment.