mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-23 02:25:59 +01:00
Added warn for old monitor cfg
This commit is contained in:
parent
5b8cdc6c43
commit
091048412a
1 changed files with 10 additions and 1 deletions
|
@ -187,6 +187,15 @@ void CConfigManager::handleMonitor(const std::string& command, const std::string
|
||||||
|
|
||||||
newrule.scale = stof(curitem);
|
newrule.scale = stof(curitem);
|
||||||
|
|
||||||
|
nextItem();
|
||||||
|
|
||||||
|
if (curitem != "") {
|
||||||
|
// warning for old cfg
|
||||||
|
Debug::log(ERR, "Error in parsing rule for %s, possibly old config!", newrule.name.c_str());
|
||||||
|
parseError = "Error in setting monitor rule. Are you using the old syntax? Confront the wiki.";
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// overwrite if exists
|
// overwrite if exists
|
||||||
for (auto& r : m_dMonitorRules) {
|
for (auto& r : m_dMonitorRules) {
|
||||||
if (r.name == newrule.name) {
|
if (r.name == newrule.name) {
|
||||||
|
@ -595,4 +604,4 @@ void CConfigManager::performMonitorReload() {
|
||||||
}
|
}
|
||||||
|
|
||||||
m_bWantsMonitorReload = false;
|
m_bWantsMonitorReload = false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue