mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-05-13 08:34:08 +02:00
Minor refactoring
This commit is contained in:
parent
96469cfca5
commit
8153fcde85
@ -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);
|
||||
|
@ -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){
|
||||
|
@ -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){
|
||||
|
Loading…
Reference in New Issue
Block a user