fix(解决bug146419): 设备之间建立链接后,对手机内图片、视频、音乐等文件进行增删后,点击“刷新”选项界面不会变化
This commit is contained in:
parent
7082ce39fc
commit
11ea8ce48a
|
@ -340,35 +340,7 @@ void MobileFileWidget::initUI()
|
|||
});
|
||||
|
||||
connect(m_refreshButton, &QPushButton::clicked, this, [=]() {
|
||||
if (m_text == tr("QQ") + "/" + tr("Picture")) {
|
||||
Q_EMIT sigUpdateClicked(ALL_FILE_LIST_TYPE::QQPICTURE);
|
||||
} else if (m_text == tr("QQ") + "/" + tr("Video")) {
|
||||
Q_EMIT sigUpdateClicked(ALL_FILE_LIST_TYPE::QQVIDEO);
|
||||
} else if (m_text == tr("QQ") + "/" + tr("Music")) {
|
||||
Q_EMIT sigUpdateClicked(ALL_FILE_LIST_TYPE::QQMUSIC);
|
||||
} else if (m_text == tr("QQ") + "/" + tr("Document")) {
|
||||
Q_EMIT sigUpdateClicked(ALL_FILE_LIST_TYPE::QQDOCUMENT);
|
||||
} else if (m_text == tr("WeChat") + "/" + tr("Picture")) {
|
||||
Q_EMIT sigUpdateClicked(ALL_FILE_LIST_TYPE::WECHATPICTURE);
|
||||
} else if (m_text == tr("WeChat") + "/" + tr("Video")) {
|
||||
Q_EMIT sigUpdateClicked(ALL_FILE_LIST_TYPE::WECHATVIDEO);
|
||||
} else if (m_text == tr("WeChat") + "/" + tr("Music")) {
|
||||
Q_EMIT sigUpdateClicked(ALL_FILE_LIST_TYPE::WECHATMUSIC);
|
||||
} else if (m_text == tr("WeChat") + "/" + tr("Document")) {
|
||||
Q_EMIT sigUpdateClicked(ALL_FILE_LIST_TYPE::WECHATDOCUMENT);
|
||||
} else if (m_text == tr("Picture")) {
|
||||
Q_EMIT sigUpdateClicked(ALL_FILE_LIST_TYPE::PICTURE);
|
||||
} else if (m_text == tr("Video")) {
|
||||
Q_EMIT sigUpdateClicked(ALL_FILE_LIST_TYPE::VIDEO);
|
||||
} else if (m_text == tr("Music")) {
|
||||
Q_EMIT sigUpdateClicked(ALL_FILE_LIST_TYPE::MUSIC);
|
||||
} else if (m_text == tr("Document")) {
|
||||
Q_EMIT sigUpdateClicked(ALL_FILE_LIST_TYPE::DOCUMENT);
|
||||
} else if (m_text == tr("WeChat")) {
|
||||
Q_EMIT sigUpdateClicked(ALL_FILE_LIST_TYPE::WECHAT);
|
||||
} else if (m_text == tr("QQ")) {
|
||||
Q_EMIT sigUpdateClicked(ALL_FILE_LIST_TYPE::QQ);
|
||||
}
|
||||
Q_EMIT sigUpdateClicked(m_text);
|
||||
});
|
||||
connect(m_modeButton, &QPushButton::clicked, this, &MobileFileWidget::slotModeButtonClicked);
|
||||
connect(m_crumb, &KBreadCrumb::currentChanged, this, [=](int index) {
|
||||
|
|
Loading…
Reference in New Issue