Bug Fixed: pinned icon now working

This commit is contained in:
Luis Fernando Molina committed 2019-05-24 12:48:57 +02:00
1 parent 57df515f60
commit 5ce0bdb4a6
4 files changed
+24

No files matched your search

+8
View File
@@ -10,6 +10,7 @@ function newCircularMenuItem () {
currentIcon: undefined,
action: undefined,
actionFunction: undefined,
actionStatus: undefined,
label: undefined,
workingLabel: undefined,
workDoneLabel: undefined,
@@ -70,6 +71,7 @@ function newCircularMenuItem () {
thisObject.currentIcon = undefined
thisObject.payload = undefined
thisObject.actionFunction = undefined
thisObject.actionStatus = undefined
}
function initialize (pPayload) {
@@ -140,6 +142,12 @@ function newCircularMenuItem () {
thisObject.iconOff = canvas.strategySpace.iconCollection.get(thisObject.iconPathOff)
}
/* Current Status might be linked to some other object status */
if (thisObject.actionStatus !== undefined) {
thisObject.currentStatus = thisObject.actionStatus()
}
/* Current Status sets the icon to be used */
if (thisObject.currentStatus === true) {