[Updater]Handle up-to-date from PowerToys.Update.exe (#18684)

This commit is contained in:
Andrey Nekrasov
2022-06-09 15:36:22 +03:00
committed by GitHub
parent 5c8742e557
commit e5c3b15a45
2 changed files with 30 additions and 23 deletions

View File

@@ -69,7 +69,10 @@ UpdateState UpdateState::read()
{
std::error_code _;
fs::remove(filename, _);
return UpdateState{};
UpdateState new_state;
json::to_file(filename, serialize(new_state));
return new_state;
}
}