Skip to content

Commit 2556235

Browse files
author
MrClock
committed
Minor fix to profiling start poll
1 parent 9a52216 commit 2556235

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

AddonProfiler/ui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ class APROF_OT_profiling_start(bpy.types.Operator):
106106

107107
@classmethod
108108
def poll(cls, context):
109-
return not prof.is_running()
109+
return not prof.is_running() and getprofile() is None
110110

111111
def execute(self, context):
112112
prof.enable()

0 commit comments

Comments
 (0)