1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-05-13 08:34:08 +02:00

Minor refactoring

This commit is contained in:
chylex 2017-08-30 13:35:47 +02:00
parent 96469cfca5
commit 8153fcde85
3 changed files with 3 additions and 6 deletions
Core/Other/Settings/Dialogs
Program.cs
subprocess

View File

@ -135,7 +135,7 @@ private void btnContinue_Click(object sender, EventArgs e){
case State.Import:
if (importManager.Import(Flags)){
Program.ReloadConfig();
Program.UserConfig.Reload();
if (importManager.IsRestarting){
Program.Restart(Arguments.ArgImportCookies);

View File

@ -189,10 +189,6 @@ private static string GetDataStoragePath(){
}
}
public static void ReloadConfig(){
UserConfig.Reload();
}
public static void ResetConfig(){
try{
File.Delete(UserConfigFilePath);
@ -202,7 +198,7 @@ public static void ResetConfig(){
return;
}
ReloadConfig();
UserConfig.Reload();
}
public static void Restart(params string[] extraArgs){

View File

@ -21,6 +21,7 @@ private static int Main(string[] args){
}
private sealed class RendererProcess : SubProcess{
// ReSharper disable once ParameterTypeCanBeEnumerable.Local
public RendererProcess(string[] args) : base(args){}
public override void OnBrowserCreated(CefBrowserWrapper wrapper){