1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-04-23 03:15:48 +02:00

Fix 'Edit CEF arguments' restart prompt and tweak dialog text

This commit is contained in:
chylex 2017-06-03 18:03:34 +02:00
parent bd1692cea3
commit a753806d7b
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ private void btnApply_Click(object sender, EventArgs e){
}
int count = CommandLineArgsParser.ReadCefArguments(CefArgs).Count;
string prompt = count == 0 && !string.IsNullOrWhiteSpace(prevArgs) ? "All arguments will be removed from the settings. Continue?" : count+(count == 1 ? " argument" : " arguments")+" will be added to the settings. Continue?";
string prompt = count == 0 && !string.IsNullOrWhiteSpace(prevArgs) ? "All current arguments will be removed. Continue?" : count+(count == 1 ? " argument was" : " arguments were")+" detected. Continue?";
if (MessageBox.Show(prompt, "Confirm CEF Arguments", MessageBoxButtons.OKCancel, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) == DialogResult.OK){
DialogResult = DialogResult.OK;

View File

@ -79,8 +79,8 @@ private void btnEditCefArgs_Click(object sender, EventArgs e){
if (form.DialogResult == DialogResult.OK){
Config.CustomCefArgs = form.CefArgs;
form.Dispose();
PromptRestart();
form.Dispose();
}
else form.Dispose();
};