Skip to content

Commit 82a0bdf

Browse files
committed
added option to turn action error message box on/off
1 parent 83c396c commit 82a0bdf

File tree

14 files changed

+69
-13
lines changed

14 files changed

+69
-13
lines changed

AssistantComputerControl/App.config

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@
8686
<setting name="StartsUsingRegistry" serializeAs="String">
8787
<value>False</value>
8888
</setting>
89+
<setting name="ActionMessageBox" serializeAs="String">
90+
<value>True</value>
91+
</setting>
8992
</AssistantComputerControl.Properties.Settings>
9093
</userSettings>
9194
<runtime>

AssistantComputerControl/Properties/Settings.Designer.cs

Lines changed: 14 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

AssistantComputerControl/Properties/Settings.settings

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,5 +83,8 @@
8383
<Setting Name="StartsUsingRegistry" Type="System.Boolean" Scope="User">
8484
<Value Profile="(Default)">False</Value>
8585
</Setting>
86+
<Setting Name="ActionMessageBox" Type="System.Boolean" Scope="User">
87+
<Value Profile="(Default)">True</Value>
88+
</Setting>
8689
</Settings>
8790
</SettingsFile>

AssistantComputerControl/SettingsForm.Designer.cs

Lines changed: 25 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

AssistantComputerControl/SettingsForm.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ void FreakingStopDingSound(Object o, KeyEventArgs e) {
3838
//Set values
3939
startWithWindows.Checked = MainProgram.ACCStartsWithWindows();
4040
checkUpdates.Checked = Properties.Settings.Default.CheckForUpdates;
41+
actionErrorMessageBox.Checked = Properties.Settings.Default.ActionMessageBox;
4142
betaProgram.Checked = Properties.Settings.Default.BetaProgram;
4243
warnDeletion.Checked = Properties.Settings.Default.WarnWhenDeletingManyFiles;
4344
defaultComputer.Checked = Properties.Settings.Default.DefaultComputer;
@@ -106,6 +107,15 @@ private void checkUpdates_CheckedChanged(object sender, EventArgs e) {
106107
}
107108
}
108109

110+
private void actionErrorMessageBox_CheckedChanged(object sender, EventArgs e) {
111+
if (Properties.Settings.Default.ActionMessageBox != actionErrorMessageBox.Checked)
112+
{
113+
Properties.Settings.Default.ActionMessageBox = actionErrorMessageBox.Checked;
114+
Properties.Settings.Default.Save();
115+
}
116+
117+
}
118+
109119
private void betaProgram_CheckedChanged(object sender, EventArgs e) {
110120
if (Properties.Settings.Default.BetaProgram != betaProgram.Checked) {
111121
Properties.Settings.Default.BetaProgram = betaProgram.Checked;
@@ -214,5 +224,7 @@ private void saveLanguageButton_Click(object sender, EventArgs e) {
214224
private void changelogOpen_Click(object sender, EventArgs e) {
215225
new NewVersion().Show();
216226
}
227+
228+
217229
}
218230
}

AssistantComputerControl/Translations/Danish.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"save_language_btn": "gem",
3232
"start_with_windows": "Åben med Windows?",
3333
"check_for_updates": "Søg automatisk efter opdateringer?",
34+
"action_error_message_box": "Show action errors?",
3435
"join_beta_program": "Vær en del af beta-programmet (og få opdateringer tidligt)",
3536

3637
"file_edited_margin": "Filændring margen (sekunder)",

AssistantComputerControl/Translations/Dutch.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
"save_language_btn": "bewaren",
3434
"start_with_windows": "Start met Windows?",
3535
"check_for_updates": "Controleren op updates?",
36+
"action_error_message_box": "Show action errors?",
3637
"join_beta_program": "Sluit je aan bij het beta programma?",
3738

3839
"file_edited_margin": "Bestand bewerkt marge (seconden)",

AssistantComputerControl/Translations/English.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
"save_language_btn": "save",
3434
"start_with_windows": "Start with Windows?",
3535
"check_for_updates": "Check for updates?",
36+
"action_error_message_box": "Show action errors?",
3637
"join_beta_program": "Join the beta program?",
3738

3839
"file_edited_margin": "File edited margin (seconds)",

AssistantComputerControl/Translations/Francais.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"save_language_btn": "enreg",
3232
"start_with_windows": "Démarrer avec Windows",
3333
"check_for_updates": "Autoriser la recherche de mises à jour ?",
34+
"action_error_message_box": "Show action errors?",
3435
"join_beta_program": "Rejoindre le programme Beta",
3536

3637
"file_edited_margin": "Délai pour un fichier édité (secondes)",

AssistantComputerControl/Translations/Italian.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"save_language_btn": "salva",
3131
"start_with_windows": "Avvia con Windows?",
3232
"check_for_updates": "Controlla gli aggiornamenti?",
33+
"action_error_message_box": "Show action errors?",
3334
"join_beta_program": "Unisciti al programma beta?",
3435

3536
"file_edited_margin": "Limite di modifica del file (secondi)",

0 commit comments

Comments
 (0)