Hide tip box on startup if disabled

This commit is contained in:
Nick O'Leary 2017-05-03 21:27:08 +01:00
parent 29bd43413a
commit b030e935ce
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
1 changed files with 7 additions and 3 deletions

View File

@ -84,8 +84,11 @@ RED.sidebar.info = (function() {
content: content,
enableOnEdit: true
});
tips.start();
if (tips.enabled()) {
tips.start();
} else {
tips.stop();
}
}
@ -333,7 +336,8 @@ RED.sidebar.info = (function() {
return {
start: startTips,
stop: stopTips,
next: nextTip
next: nextTip,
enabled: function() { return enabled; }
}
})();