setToolbarHidden(false) if setEnabled has enable = true

Signed-off-by: Minhaz A V <minhazav@gmail.com>
This commit is contained in:
Minhaz A V 2016-03-24 05:46:52 +05:30
parent 8605ca134e
commit 6fc0aaef60

View file

@ -150,6 +150,7 @@ var Notifier = {
value: true
});
});
this.setToolbarHidden(false);
} else {
if (!global.localStorage) return;
global.localStorage.setItem('notifications_enabled', 'false');
@ -194,7 +195,7 @@ var Notifier = {
// update the info to localStorage for persistent settings
if (persistent && global.localStorage) {
global.localStorage.setItem('notifications_hidden', 'true');
global.localStorage.setItem('notifications_hidden', hidden);
}
},