Skip to content

Commit

Permalink
[F] Initialize with SQLite DB on FirstRun
Browse files Browse the repository at this point in the history
  • Loading branch information
Baine committed Jul 3, 2018
1 parent 87dd8ae commit 3511693
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Shoko.UI/MainWindow.xaml.cs
Expand Up @@ -851,7 +851,11 @@ void MainWindow_Loaded(object sender, RoutedEventArgs e)

Utils.ClearAutoUpdateCache();

ShowDatabaseSetup();
if (ServerSettings.FirstRun)
{
logger.Info("Initializing DB...");
ShokoServer.RunWorkSetupDB();
}

ShokoServer.Instance.CheckForUpdates();
ShokoServer.Instance.UpdateAvailable += (s, args) => new UpdateForm {Owner = Instance}.ShowDialog();
Expand Down

0 comments on commit 3511693

Please sign in to comment.