From 963bf7498b013b203a50ac892ca5d00c37367720 Mon Sep 17 00:00:00 2001 From: Anna Clemens Date: Sun, 19 Dec 2021 20:48:28 -0500 Subject: [PATCH] fix: don't load when editor isn't open --- Glamaholic/Ui/MainInterface.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Glamaholic/Ui/MainInterface.cs b/Glamaholic/Ui/MainInterface.cs index 7327cbe..043b09d 100755 --- a/Glamaholic/Ui/MainInterface.cs +++ b/Glamaholic/Ui/MainInterface.cs @@ -676,9 +676,9 @@ namespace Glamaholic.Ui { if (Util.IconButton(FontAwesomeIcon.Check, tooltip: "Apply")) { if (!Util.IsEditingPlate(this.Ui.Plugin.GameGui)) { this.AddTimedMessage("The in-game plate editor must be open."); + } else { + this.Ui.Plugin.Functions.LoadPlate(plate); } - - this.Ui.Plugin.Functions.LoadPlate(plate); } ImGui.TableNextColumn();