!32 fix update historywidget
Merge pull request !32 from likehomedream/my-2.0-devel
This commit is contained in:
commit
d84cc43bb7
|
@ -159,7 +159,6 @@ void MainWindow::initUI()
|
|||
alllayout->addWidget(m_guideWidget);
|
||||
alllayout->addWidget(m_historywidget);
|
||||
}
|
||||
m_historywidget->updateHistoryDir();
|
||||
});
|
||||
|
||||
QFileSystemWatcher* watcher = new QFileSystemWatcher(this);
|
||||
|
@ -187,6 +186,7 @@ void MainWindow::onGoHomeClicked()
|
|||
m_stackedWidget->setCurrentIndex(0);
|
||||
});
|
||||
connect(m_cacheConfirmedWidget, &cacheConfirmedWidget::cacheSave, this, [=](){
|
||||
m_historywidget->updateHistoryDir();
|
||||
m_stackedWidget->setCurrentIndex(0);
|
||||
});
|
||||
} else {
|
||||
|
|
|
@ -109,7 +109,10 @@ void HistoryWidget::updateHistoryDir()
|
|||
button->setThemeName(info->getThemeName());
|
||||
button->setThemeType(info->getThemeType());
|
||||
button->initUI();
|
||||
connect(button,&HistoryButton::clicked,this,[=](){
|
||||
|
||||
emit startSecondEdit(info->getInfoData());
|
||||
});
|
||||
layout->addWidget(button, row, col);
|
||||
|
||||
col++;
|
||||
|
|
Loading…
Reference in New Issue