Skip to content

Commit

Permalink
Fix dumb bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ottermandias committed Feb 6, 2024
1 parent 28ce293 commit 836e3e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion Glamourer/Configuration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using Dalamud.Interface.Internal.Notifications;
using Glamourer.Designs;
using Glamourer.Gui;
using Glamourer.Gui.Customization;
using Glamourer.Services;
using Newtonsoft.Json;
using OtterGui;
Expand Down
8 changes: 4 additions & 4 deletions Glamourer/Gui/ToggleDrawData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ public readonly void SetValue(bool value)
{
switch (_index.GetFlag())
{
case MetaIndex index:
_editor.ChangeMetaState(_data, index, value, ApplySettings.Manual);
case MetaFlag flag:
_editor.ChangeMetaState(_data, flag.ToIndex(), value, ApplySettings.Manual);
break;
case CrestFlag flag:
_editor.ChangeCrest(_data, flag, value, ApplySettings.Manual);
Expand All @@ -42,8 +42,8 @@ public readonly void SetApply(bool value)
var design = (Design)_data;
switch (_index.GetFlag())
{
case MetaIndex index:
manager.ChangeApplyMeta(design, index, value);
case MetaFlag flag:
manager.ChangeApplyMeta(design, flag.ToIndex(), value);
break;
case CrestFlag flag:
manager.ChangeApplyCrest(design, flag, value);
Expand Down

0 comments on commit 836e3e6

Please sign in to comment.