Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
etkmlm committed Feb 2, 2022
1 parent c54014d commit 99b7992
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,16 @@ public MainWindow()
InitializeComponent();
defImg = imgMusic.Fill;

SetupLang();

logger = new(System.IO.Path.Combine(Environment.CurrentDirectory, "Logs"));

InitLog("Starting initialization...");

if (!configService.ConfigExists())
configService.CreateFile();
configService.FixFile();

SetupLang();

if (System.Diagnostics.Process.GetProcessesByName("CynthMusic").Length > 1)
{
bool? result = new AlertBox(translator.Get("warning"), translator.Get("cynthOpen"), true).ShowDialog();
Expand Down Expand Up @@ -124,17 +128,12 @@ public MainWindow()
playerService.Resume();
});
update = new UpdateService();
InitLog("1-) Generation completed.");

CheckDB(data);
SwitchMenu(0);
if (!configService.ConfigExists())
configService.CreateFile();
configService.FixFile();

SetupArgs();

InitLog("2-) Check-up completed.");

var desc = new System.ComponentModel.SortDescription("Index", System.ComponentModel.ListSortDirection.Ascending);
CollectionView viewPlaying = (CollectionView)CollectionViewSource.GetDefaultView(lvPlaying.ItemsSource);
viewPlaying.SortDescriptions.Add(desc);
Expand Down Expand Up @@ -164,7 +163,6 @@ public MainWindow()
configService.Set("FIRST", "FALSE");
}

InitLog("3-) Checking updates...");
CheckUpdate();
InitLog("Initialization finish.");
}
Expand Down

0 comments on commit 99b7992

Please sign in to comment.