Reset prompt text before setting

This commit is contained in:
Vortrex
2022-05-04 10:05:35 -05:00
parent dfd95e9c16
commit 8ea65aefe4

View File

@@ -82,10 +82,17 @@ function showYesNoPromptGUI(promptMessage, promptTitle, yesButtonText, noButtonT
closeAllWindows();
logToConsole(LOG_DEBUG, `[VRR.GUI] Showing prompt window. Prompt: ${promptTitle} - ${promptMessage}`);
mexui.setInput(true);
yesNoDialog.messageLabel.text = "";
yesNoDialog.yesButton.text = "";
yesNoDialog.noButton.text = "";
yesNoDialog.window.title = "";
yesNoDialog.messageLabel.text = promptMessage;
yesNoDialog.yesButton.text = yesButtonText;
yesNoDialog.noButton.text = noButtonText;
yesNoDialog.window.title = promptTitle;
yesNoDialog.window.shown = true;
}