diff --git a/main/source/window/window.cpp b/main/source/window/window.cpp index 2cc93ea91..a3616dc65 100644 --- a/main/source/window/window.cpp +++ b/main/source/window/window.cpp @@ -131,7 +131,7 @@ namespace hex { constexpr static auto CrashBackupFileName = "crash_backup.hexproj"; - EventManager::subscribe(this, [this, CrashBackupFileName](int) { + EventManager::subscribe(this, [this](int) { ImGui::SaveIniSettingsToDisk(this->m_imguiSettingsPath.string().c_str()); if (!ImHexApi::Provider::isDirty())