Skip to content

Commit

Permalink
Fix: ValueError when registering 'font_size' IntProperty (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
nutti committed Nov 21, 2021
1 parent b2348aa commit 0f01050
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/screencast_keys/preferences.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ class SK_Preferences(bpy.types.AddonPreferences):

font_size = bpy.props.IntProperty(
name="Font Size",
default=compat.get_user_preferences(bpy.context).ui_styles[0].widget.points,
default=int(compat.get_user_preferences(bpy.context).ui_styles[0].widget.points),
min=6,
max=1000
)
Expand All @@ -178,7 +178,7 @@ class SK_Preferences(bpy.types.AddonPreferences):

mouse_size = bpy.props.IntProperty(
name="Mouse Size",
default=compat.get_user_preferences(bpy.context).ui_styles[0].widget.points*3,
default=int(compat.get_user_preferences(bpy.context).ui_styles[0].widget.points*3),
min=18,
max=1000,
)
Expand Down

0 comments on commit 0f01050

Please sign in to comment.