mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-06-11 05:34:06 +02:00
Rename Settings to Options
This commit is contained in:
parent
b7ce089f08
commit
bd1692cea3
@ -237,7 +237,7 @@ public static UserConfig Load(string file){
|
|||||||
Program.Reporter.Log(e.ToString());
|
Program.Reporter.Log(e.ToString());
|
||||||
}
|
}
|
||||||
else if (firstException != null){
|
else if (firstException != null){
|
||||||
Program.Reporter.HandleException("Configuration Error", "Could not open the backup configuration file. If you continue, you may lose your settings and list of enabled plugins.", true, e);
|
Program.Reporter.HandleException("Configuration Error", "Could not open the backup configuration file. If you continue, your program options will be reset.", true, e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -312,7 +312,7 @@ private void soundNotification_PlaybackError(object sender, PlaybackErrorEventAr
|
|||||||
using(FormMessage form = new FormMessage("Notification Sound Error", "Could not play custom notification sound."+Environment.NewLine+e.Message, MessageBoxIcon.Error)){
|
using(FormMessage form = new FormMessage("Notification Sound Error", "Could not play custom notification sound."+Environment.NewLine+e.Message, MessageBoxIcon.Error)){
|
||||||
form.CancelButton = form.AddButton("Ignore");
|
form.CancelButton = form.AddButton("Ignore");
|
||||||
|
|
||||||
Button btnOpenSettings = form.AddButton("Open Settings");
|
Button btnOpenSettings = form.AddButton("View Options");
|
||||||
btnOpenSettings.Width += 16;
|
btnOpenSettings.Width += 16;
|
||||||
btnOpenSettings.Location = new Point(btnOpenSettings.Location.X-16, btnOpenSettings.Location.Y);
|
btnOpenSettings.Location = new Point(btnOpenSettings.Location.X-16, btnOpenSettings.Location.Y);
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ class ContextMenuBrowser : ContextMenuBase{
|
|||||||
|
|
||||||
private const string TitleReloadBrowser = "Reload browser";
|
private const string TitleReloadBrowser = "Reload browser";
|
||||||
private const string TitleMuteNotifications = "Mute notifications";
|
private const string TitleMuteNotifications = "Mute notifications";
|
||||||
private const string TitleSettings = "Settings";
|
private const string TitleSettings = "Options";
|
||||||
private const string TitlePlugins = "Plugins";
|
private const string TitlePlugins = "Plugins";
|
||||||
private const string TitleAboutProgram = "About "+Program.BrandName;
|
private const string TitleAboutProgram = "About "+Program.BrandName;
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ sealed partial class FormSettings : Form{
|
|||||||
public FormSettings(FormBrowser browser, PluginManager plugins, UpdateHandler updates, int startTabIndex = 0){
|
public FormSettings(FormBrowser browser, PluginManager plugins, UpdateHandler updates, int startTabIndex = 0){
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
Text = Program.BrandName+" Settings";
|
Text = Program.BrandName+" Options";
|
||||||
|
|
||||||
this.browser = browser;
|
this.browser = browser;
|
||||||
this.browser.PauseNotification();
|
this.browser.PauseNotification();
|
||||||
|
@ -13,7 +13,7 @@ public virtual void OnReady(){}
|
|||||||
public virtual void OnClosing(){}
|
public virtual void OnClosing(){}
|
||||||
|
|
||||||
protected static void PromptRestart(){
|
protected static void PromptRestart(){
|
||||||
if (MessageBox.Show("The application must restart for the setting to take place. Do you want to restart now?", Program.BrandName+" Settings", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.Yes){
|
if (MessageBox.Show("The application must restart for the option to take place. Do you want to restart now?", Program.BrandName+" Options", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.Yes){
|
||||||
Program.Restart();
|
Program.Restart();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -13,7 +13,7 @@ sealed partial class DialogSettingsCSS : Form{
|
|||||||
public DialogSettingsCSS(Action<string> reinjectBrowserCSS){
|
public DialogSettingsCSS(Action<string> reinjectBrowserCSS){
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
Text = Program.BrandName+" Settings - CSS";
|
Text = Program.BrandName+" Options - CSS";
|
||||||
|
|
||||||
this.reinjectBrowserCSS = reinjectBrowserCSS;
|
this.reinjectBrowserCSS = reinjectBrowserCSS;
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ sealed partial class DialogSettingsCefArgs : Form{
|
|||||||
public DialogSettingsCefArgs(){
|
public DialogSettingsCefArgs(){
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
Text = Program.BrandName+" Settings - CEF Arguments";
|
Text = Program.BrandName+" Options - CEF Arguments";
|
||||||
|
|
||||||
textBoxArgs.EnableMultilineShortcuts();
|
textBoxArgs.EnableMultilineShortcuts();
|
||||||
textBoxArgs.Text = Program.UserConfig.CustomCefArgs ?? "";
|
textBoxArgs.Text = Program.UserConfig.CustomCefArgs ?? "";
|
||||||
|
@ -66,8 +66,8 @@ private void InitializeComponent() {
|
|||||||
this.cbConfig.Name = "cbConfig";
|
this.cbConfig.Name = "cbConfig";
|
||||||
this.cbConfig.Size = new System.Drawing.Size(106, 17);
|
this.cbConfig.Size = new System.Drawing.Size(106, 17);
|
||||||
this.cbConfig.TabIndex = 0;
|
this.cbConfig.TabIndex = 0;
|
||||||
this.cbConfig.Text = "Program Settings";
|
this.cbConfig.Text = "Program Options";
|
||||||
this.toolTip.SetToolTip(this.cbConfig, "Interface, notification, and update settings.");
|
this.toolTip.SetToolTip(this.cbConfig, "Interface, notification, and update options.");
|
||||||
this.cbConfig.UseVisualStyleBackColor = true;
|
this.cbConfig.UseVisualStyleBackColor = true;
|
||||||
this.cbConfig.CheckedChanged += new System.EventHandler(this.cbConfig_CheckedChanged);
|
this.cbConfig.CheckedChanged += new System.EventHandler(this.cbConfig_CheckedChanged);
|
||||||
//
|
//
|
||||||
|
@ -188,7 +188,7 @@ private void btnImport_Click(object sender, EventArgs e){
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void btnReset_Click(object sender, EventArgs e){
|
private void btnReset_Click(object sender, EventArgs e){
|
||||||
if (MessageBox.Show("This will reset all of your program settings. Plugins will not be affected. Do you want to proceed?", "Reset "+Program.BrandName+" Settings", MessageBoxButtons.YesNo, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button2) == DialogResult.Yes){
|
if (MessageBox.Show("This will reset all of your program options. Plugins will not be affected. Do you want to proceed?", "Reset "+Program.BrandName+" Options", MessageBoxButtons.YesNo, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button2) == DialogResult.Yes){
|
||||||
Program.ResetConfig();
|
Program.ResetConfig();
|
||||||
((FormSettings)ParentForm).ReloadUI();
|
((FormSettings)ParentForm).ReloadUI();
|
||||||
}
|
}
|
||||||
|
@ -233,7 +233,7 @@ public static void ResetConfig(){
|
|||||||
File.Delete(UserConfigFilePath);
|
File.Delete(UserConfigFilePath);
|
||||||
File.Delete(UserConfig.GetBackupFile(UserConfigFilePath));
|
File.Delete(UserConfig.GetBackupFile(UserConfigFilePath));
|
||||||
}catch(Exception e){
|
}catch(Exception e){
|
||||||
Reporter.HandleException("Configuration Reset Error", "Could not delete configuration files to reset the settings.", true, e);
|
Reporter.HandleException("Configuration Reset Error", "Could not delete configuration files to reset the options.", true, e);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user