Fix: my_node_name insert inside [global] section, add button tooltips in channellist
This commit is contained in:
1 parent
cca3511503
commit
37417ba49d
2 files changed
+5
-3
No files matched your search
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user