fix(ukcc-plugin):修复内容索引弹窗不在父窗口居中的问题.

This commit is contained in:
JunjieBai 2024-03-07 11:32:43 +08:00
parent b6835305fc
commit 64cbe82b10
1 changed files with 1 additions and 1 deletions

View File

@ -176,7 +176,7 @@ QWidget *Search::pluginUi()
});
connect(m_contentIndexBtn, &kdk::KSwitchButton::pressed, this, [ & ] {
if (!m_contentIndexBtn->isChecked()) {
QMessageBox msgBox;
QMessageBox msgBox(m_pluginWidget);
msgBox.setModal(true);
msgBox.setIcon(QMessageBox::Warning);
msgBox.setText(tr("Create file content index will increase the usage of memory and CPU, do you still want to open it?"));