Skip to content

Commit a0bf70c

Browse files
committed
#3570 settingsdialog: fix opening of script repository dialog
Signed-off-by: Patrizio Bekerle <patrizio@bekerle.com>
1 parent f24ec0e commit a0bf70c

4 files changed

Lines changed: 10 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
## 26.4.18
44

5+
- Fixed the main menu action **Scripting > Find scripts in script repository**,
6+
which stopped opening the script repository after the settings dialog pages
7+
were moved into dedicated widgets (for [#3570](https://github.com/pbek/QOwnNotes/issues/3570))
58
- Added an optional **Import metadata as YAML front matter** mode to the
69
**Evernote import** dialog, so imported note metadata can be stored in hidden
710
front matter instead of a visible Markdown table when that format is preferred

src/dialogs/settingsdialog.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,10 @@ SettingsDialog::SettingsDialog(int page, QWidget *parent)
212212
}
213213
}
214214

215+
void SettingsDialog::searchScriptInRepository() {
216+
ui->scriptingSettingsWidget->searchScriptInRepository();
217+
}
218+
215219
/**
216220
* Replaces the "ownCloud" text by "ownCloud / NextCloud"
217221
*/

src/dialogs/settingsdialog.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ class SettingsDialog : public MasterDialog {
9292

9393
void readSettings();
9494

95+
void searchScriptInRepository();
96+
9597
protected:
9698
void closeEvent(QCloseEvent *event) override;
9799

src/mainwindow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3885,7 +3885,7 @@ void MainWindow::openSettingsDialog(int page, bool openScriptRepository) {
38853885
QPointer<SettingsDialog> settingsDialog = new SettingsDialog(page, this);
38863886

38873887
if (openScriptRepository) {
3888-
QTimer::singleShot(10, settingsDialog, SLOT(searchScriptInRepository()));
3888+
QTimer::singleShot(10, settingsDialog, &SettingsDialog::searchScriptInRepository);
38893889
}
38903890

38913891
// open the settings dialog

0 commit comments

Comments
 (0)