From 51574b7396bc9bb917a1d442c3b3f7ff1cd31c2c Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Mon, 27 Jan 2020 18:43:21 +0200 Subject: Refactor Browser::addPlugin to ::loadPlugins --- src/mainwindow/menubar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mainwindow') diff --git a/src/mainwindow/menubar.cpp b/src/mainwindow/menubar.cpp index eecb61a..27a8561 100644 --- a/src/mainwindow/menubar.cpp +++ b/src/mainwindow/menubar.cpp @@ -137,7 +137,7 @@ MenuBar::MenuBar(MainWindow *parent) smolbote->addSeparator(); smolbote->addAction(tr("Load Plugin"), browser, [browser]() { const QString path = QFileDialog::getOpenFileName(nullptr, tr("Select Plugin"), QDir::homePath(), tr("Plugins (*.so)")); - browser->addPlugin(path); + browser->loadPlugins(QStringList(path)); }); pluginInsertLocation = smolbote->addSeparator(); -- cgit v1.2.1