mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 15:37:23 +01:00
fix trying to migrate config when no config is present
This commit is contained in:
parent
a1d4c1aed9
commit
673d098827
2 changed files with 8 additions and 5 deletions
|
|
@ -28,11 +28,14 @@ public class ConfigurationMigrator
|
|||
MigrateMareConfigV0ToV1(config);
|
||||
}
|
||||
|
||||
var mareConfig = JsonConvert.DeserializeObject<MareConfigV0>(File.ReadAllText(ConfigurationPath(MareConfigService.ConfigName)))!;
|
||||
|
||||
if (mareConfig.Version == 0)
|
||||
if (File.Exists(ConfigurationPath(MareConfigService.ConfigName)))
|
||||
{
|
||||
MigrateMareConfigV0ToV1(mareConfig);
|
||||
var mareConfig = JsonConvert.DeserializeObject<MareConfigV0>(File.ReadAllText(ConfigurationPath(MareConfigService.ConfigName)))!;
|
||||
|
||||
if (mareConfig.Version == 0)
|
||||
{
|
||||
MigrateMareConfigV0ToV1(mareConfig);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
<PropertyGroup>
|
||||
<Authors></Authors>
|
||||
<Company></Company>
|
||||
<Version>0.7.18</Version>
|
||||
<Version>0.7.19</Version>
|
||||
<Description></Description>
|
||||
<Copyright></Copyright>
|
||||
<PackageProjectUrl>https://github.com/Penumbra-Sync/client</PackageProjectUrl>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue