Skip to content

Commit

Permalink
Rename addin to addIn
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianPommerening committed May 9, 2021
1 parent 8d5037d commit 0f4503f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions FingerJoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from . import geometry

# Global variable to hold the add-in (created in run(), destroyed in stop())
addin = None
addIn = None


class FingerJointCommand(commands.RunningCommandBase):
Expand Down Expand Up @@ -74,17 +74,17 @@ def stop(self):


def run(context):
global addin
global addIn
try:
if addin is not None:
if addIn is not None:
stop({'IsApplicationClosing': False})
addin = FingerJointAddIn()
addin.start()
addIn = FingerJointAddIn()
addIn.start()
except:
ui.reportError('Uncaught exception', True)


def stop(context):
global addin
addin.stop()
addin = None
global addIn
addIn.stop()
addIn = None

0 comments on commit 0f4503f

Please sign in to comment.