From ff36cd4733c03d8d85bd5c9e2f70b710eabd86d3 Mon Sep 17 00:00:00 2001 From: JustArchi Date: Thu, 24 Dec 2020 21:30:16 +0100 Subject: [PATCH] Always save global database if doesn't exist Bot database doesn't have any crucial info to save, but global database is used at least with its ASF identifier (that we don't really want to regenerate) as well as for first run detection. --- ArchiSteamFarm/GlobalDatabase.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ArchiSteamFarm/GlobalDatabase.cs b/ArchiSteamFarm/GlobalDatabase.cs index 453cf6c1d..d20f40c7b 100644 --- a/ArchiSteamFarm/GlobalDatabase.cs +++ b/ArchiSteamFarm/GlobalDatabase.cs @@ -102,7 +102,11 @@ namespace ArchiSteamFarm { } if (!File.Exists(filePath)) { - return new GlobalDatabase(filePath); + GlobalDatabase result = new(filePath); + + Utilities.InBackground(result.Save); + + return result; } GlobalDatabase globalDatabase;