mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 13:37:42 -05:00
sys: Clear project after loading crash backup
This commit is contained in:
@@ -174,6 +174,11 @@ namespace hex::plugin::builtin {
|
||||
ImGui::SetCursorPosX(width / 9);
|
||||
if (ImGui::Button("hex.builtin.welcome.safety_backup.restore"_lang, ImVec2(width / 3, 0))) {
|
||||
ProjectFile::load(s_safetyBackupPath);
|
||||
ProjectFile::clearPath();
|
||||
|
||||
for (const auto &provider : ImHexApi::Provider::getProviders())
|
||||
provider->markDirty();
|
||||
|
||||
fs::remove(s_safetyBackupPath);
|
||||
|
||||
ImGui::CloseCurrentPopup();
|
||||
|
||||
Reference in New Issue
Block a user