Compare commits

...

1 Commits

Author SHA1 Message Date
Gordon Lam (SH)
d041026fb6 Enable development on a module without building all 2025-09-24 06:50:49 +08:00

View File

@@ -190,10 +190,19 @@ int runner(bool isProcessElevated, bool openSettings, std::string settingsWindow
{
std::wstring errorMessage = POWER_TOYS_MODULE_LOAD_FAIL;
errorMessage += moduleSubdir;
#ifdef _DEBUG
// In debug mode, simply log the warning and continue execution.
// This contrasts with the past approach where developers had to build all modules
// without errors before debugging—slowing down quick clone-and-fix iterations.
Logger::warn(L"Debug mode: {}", errorMessage);
#else
// In release mode, show error dialog as before
MessageBoxW(NULL,
errorMessage.c_str(),
L"PowerToys",
MB_OK | MB_ICONERROR);
#endif
}
}
// Start initial powertoys