mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 19:47:21 +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);
|
MigrateMareConfigV0ToV1(config);
|
||||||
}
|
}
|
||||||
|
|
||||||
var mareConfig = JsonConvert.DeserializeObject<MareConfigV0>(File.ReadAllText(ConfigurationPath(MareConfigService.ConfigName)))!;
|
if (File.Exists(ConfigurationPath(MareConfigService.ConfigName)))
|
||||||
|
|
||||||
if (mareConfig.Version == 0)
|
|
||||||
{
|
{
|
||||||
MigrateMareConfigV0ToV1(mareConfig);
|
var mareConfig = JsonConvert.DeserializeObject<MareConfigV0>(File.ReadAllText(ConfigurationPath(MareConfigService.ConfigName)))!;
|
||||||
|
|
||||||
|
if (mareConfig.Version == 0)
|
||||||
|
{
|
||||||
|
MigrateMareConfigV0ToV1(mareConfig);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Authors></Authors>
|
<Authors></Authors>
|
||||||
<Company></Company>
|
<Company></Company>
|
||||||
<Version>0.7.18</Version>
|
<Version>0.7.19</Version>
|
||||||
<Description></Description>
|
<Description></Description>
|
||||||
<Copyright></Copyright>
|
<Copyright></Copyright>
|
||||||
<PackageProjectUrl>https://github.com/Penumbra-Sync/client</PackageProjectUrl>
|
<PackageProjectUrl>https://github.com/Penumbra-Sync/client</PackageProjectUrl>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue