Skip to content

Commit b22037b

Browse files
committed
#3307 scripting: hide settings part of script after last script was removed
Signed-off-by: Patrizio Bekerle <patrizio@bekerle.com>
1 parent e84927c commit b22037b

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
- The Windows build now switched to Qt 6.6.1, because the Qt 5 build could not be executed
66
anymore, when built with Windows Server 2025 (for [#3306](https://github.com/pbek/QOwnNotes/issues/3306))
7+
- In the _Scripts settings_, the settings for a script will be hidden after the last script
8+
was removed, not just disabled (for [#3307](https://github.com/pbek/QOwnNotes/issues/3307))
79

810
## 25.7.0
911

src/dialogs/settingsdialog.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2675,6 +2675,9 @@ void SettingsDialog::reloadScriptList() const {
26752675

26762676
// disable the edit frame if there is no item
26772677
ui->scriptEditFrame->setEnabled(scriptsCount > 0);
2678+
if (scriptsCount > 0) {
2679+
ui->scriptEditFrame->setVisible(true);
2680+
}
26782681

26792682
// disable the remove button if there is no item
26802683
ui->scriptRemoveButton->setEnabled(scriptsCount > 0);
@@ -2735,6 +2738,7 @@ void SettingsDialog::on_scriptRemoveButton_clicked() {
27352738

27362739
// disable the edit frame if there is no item
27372740
ui->scriptEditFrame->setEnabled(scriptsAvailable);
2741+
ui->scriptEditFrame->setVisible(scriptsAvailable);
27382742

27392743
// reload the scripting engine
27402744
ScriptingService::instance()->reloadEngine();

0 commit comments

Comments
 (0)