Fix: my_node_name insert inside [global] section, add button tooltips in channellist

This commit is contained in:
Evgeny committed 2026-07-14 09:17:01 +03:00
1 parent cca3511503
commit 37417ba49d
2 files changed
+5 -3

No files matched your search

+2 -3
View File
@@ -147,9 +147,8 @@ void SettingsDialog::onSave() {
if (lines[i].trimmed().startsWith("my_node_name=")) {
lines[i] = "my_node_name=" + newName;
found = true;
} else if (!found && lines[i].trimmed().startsWith("[gui]")) {
// insert before [gui] if not found yet
lines.insert(i, "my_node_name=" + newName);
} else if (!found && lines[i].trimmed() == "[global]") {
lines.insert(i + 1, "my_node_name=" + newName);
found = true;
}
}