Commit 054fe45e authored by Big Bad Waffle's avatar Big Bad Waffle

fixed a bug that caused event and quest UIs to not be hideable

parent 56a78e73
......@@ -120,9 +120,7 @@ define([
},
onToggleEventsVisibility: function (active) {
this.shown = active;
if (this.shown)
if (active)
this.show();
else
this.hide();
......
......@@ -128,12 +128,12 @@ define([
},
onToggleQuestsVisibility: function (state) {
this.shown = state !== 'off';
const shouldHide = state === 'off';
if (this.shown)
this.show();
else
if (shouldHide)
this.hide();
else
this.show();
this.el.removeClass('minimal');
if (state === 'minimal')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment