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

This commit is contained in:
Anna 2021-12-19 20:48:28 -05:00
parent a28c81098b
commit af4edd1da3
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();