Removed safeguard question before reconfiguration.
This commit is contained in:
parent
6511401fa4
commit
b2013412dd
3 changed files with 1 additions and 16 deletions
|
@ -223,14 +223,7 @@ namespace SafeExamBrowser.Browser
|
||||||
|
|
||||||
if (args.AllowDownload)
|
if (args.AllowDownload)
|
||||||
{
|
{
|
||||||
logger.Debug($"Download request for configuration file '{fileName}' was granted. Asking user to confirm the reconfiguration...");
|
logger.Debug($"Download request for configuration file '{fileName}' was granted.");
|
||||||
|
|
||||||
var message = TextKey.MessageBox_ReconfigurationQuestion;
|
|
||||||
var title = TextKey.MessageBox_ReconfigurationQuestionTitle;
|
|
||||||
var result = messageBox.Show(message, title, MessageBoxAction.YesNo, MessageBoxIcon.Question, window);
|
|
||||||
|
|
||||||
args.AllowDownload = result == MessageBoxResult.Yes;
|
|
||||||
logger.Info($"The user chose to {(args.AllowDownload ? "start" : "abort")} the reconfiguration.");
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -51,8 +51,6 @@ namespace SafeExamBrowser.I18n.Contracts
|
||||||
MessageBox_ReconfigurationDeniedTitle,
|
MessageBox_ReconfigurationDeniedTitle,
|
||||||
MessageBox_ReconfigurationError,
|
MessageBox_ReconfigurationError,
|
||||||
MessageBox_ReconfigurationErrorTitle,
|
MessageBox_ReconfigurationErrorTitle,
|
||||||
MessageBox_ReconfigurationQuestion,
|
|
||||||
MessageBox_ReconfigurationQuestionTitle,
|
|
||||||
MessageBox_ReloadConfirmation,
|
MessageBox_ReloadConfirmation,
|
||||||
MessageBox_ReloadConfirmationTitle,
|
MessageBox_ReloadConfirmationTitle,
|
||||||
MessageBox_ServiceUnavailableError,
|
MessageBox_ServiceUnavailableError,
|
||||||
|
|
|
@ -111,12 +111,6 @@
|
||||||
<Entry key="MessageBox_ReconfigurationErrorTitle">
|
<Entry key="MessageBox_ReconfigurationErrorTitle">
|
||||||
Reconfiguration Error
|
Reconfiguration Error
|
||||||
</Entry>
|
</Entry>
|
||||||
<Entry key="MessageBox_ReconfigurationQuestion">
|
|
||||||
Would you like to reconfigure the application?
|
|
||||||
</Entry>
|
|
||||||
<Entry key="MessageBox_ReconfigurationQuestionTitle">
|
|
||||||
Configuration Detected
|
|
||||||
</Entry>
|
|
||||||
<Entry key="MessageBox_ReloadConfirmation">
|
<Entry key="MessageBox_ReloadConfirmation">
|
||||||
Would you like to reload the current page?
|
Would you like to reload the current page?
|
||||||
</Entry>
|
</Entry>
|
||||||
|
|
Loading…
Reference in a new issue