diff options
| author | Vaxry <vaxry@vaxry.net> | 2025-01-24 13:23:23 +0000 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2025-01-24 13:23:23 +0000 |
| commit | 944e36ea2e71db20cf3f8b2e5cbf978a5bf5268b (patch) | |
| tree | 470595c125eb5dc40daeba63bb3523f4342e16b9 /src/config/ConfigManager.cpp | |
| parent | 4a1b960cbedb3e2893eeadecdf2b4a7314634306 (diff) | |
config: fix misc:disable_autoreload
fixes #9139
Diffstat (limited to 'src/config/ConfigManager.cpp')
| -rw-r--r-- | src/config/ConfigManager.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index b0665db9..f5c9b3ee 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -897,9 +897,10 @@ std::optional<std::string> CConfigManager::resetHLConfig() { void CConfigManager::postConfigReload(const Hyprlang::CParseResult& result) { static const auto PENABLEEXPLICIT = CConfigValue<Hyprlang::INT>("render:explicit_sync"); + static const auto PDISABLEAUTORELOAD = CConfigValue<Hyprlang::INT>("misc:disable_autoreload"); static int prevEnabledExplicit = *PENABLEEXPLICIT; - g_pConfigWatcher->setWatchList(m_configPaths); + g_pConfigWatcher->setWatchList(*PDISABLEAUTORELOAD ? std::vector<std::string>{} : m_configPaths); for (auto const& w : g_pCompositor->m_vWindows) { w->uncacheWindowDecos(); |
