From b102bb079306fc7780357407c9d0fbd0ae90f29e Mon Sep 17 00:00:00 2001 From: baijunjie Date: Mon, 21 Nov 2022 10:11:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8E=A7=E5=88=B6=E9=9D=A2?= =?UTF-8?q?=E6=9D=BF=E6=90=9C=E7=B4=A2=E6=8F=92=E4=BB=B6=E5=B4=A9=E6=BA=83?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- search-ukcc-plugin/search.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/search-ukcc-plugin/search.cpp b/search-ukcc-plugin/search.cpp index 631c606..ab33986 100644 --- a/search-ukcc-plugin/search.cpp +++ b/search-ukcc-plugin/search.cpp @@ -15,7 +15,6 @@ Search::Search() m_dirSettings = new QSettings(QDir::homePath() + CONFIG_FILE, QSettings::NativeFormat, this); m_dirSettings->setIniCodec(QTextCodec::codecForName("UTF-8")); - initBlockDirsList(); const QByteArray id(UKUI_SEARCH_SCHEMAS); if (QGSettings::isSchemaInstalled(id)) { @@ -39,6 +38,7 @@ QWidget *Search::pluginUi() { initUi(); connect(m_addBlockDirWidget, &QPushButton::clicked, this, &Search::onBtnAddFolderClicked); + initBlockDirsList(); if (m_gsettings) { //按钮状态初始化