fix: don't load when editor isn't open

This commit is contained in:
Anna 2021-12-19 20:48:28 -05:00
parent ce226ae9f8
commit 963bf7498b
Signed by: anna
GPG Key ID: 0B391D8F06FCD9E0
1 changed files with 2 additions and 2 deletions

View File

@ -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();