Skip to content

Commit

Permalink
fix: Hide search box on photo classification cover page
Browse files Browse the repository at this point in the history
  Hide search box on photo classification cover page

Log: Hide search box on photo classification cover page
Bug: https://pms.uniontech.com/bug-view-232637.html
  • Loading branch information
starhcq committed Dec 6, 2023
1 parent c8c2160 commit 23f4b22
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/album/albumview/albumview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1041,6 +1041,7 @@ void AlbumView::updateRightView()
} else if (COMMON_STR_CLASS == m_currentType) {
m_bHasClassified = false;
updateRightClassView();
emit sigSearchEditIsDisplay(false);
} else if (COMMON_STR_CLASSDETAIL == m_currentType) {
if (!m_currentClassName.isEmpty())
updateRightClassViewDetail(m_currentClassName);
Expand Down
4 changes: 3 additions & 1 deletion src/album/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2197,7 +2197,9 @@ void MainWindow::onButtonClicked(int id)
}
albumBtnClicked();
// 如果是最近删除或者移动设备,则搜索框不显示
if (2 == m_pAlbumview->m_pRightStackWidget->currentIndex() || 6 == m_pAlbumview->m_pRightStackWidget->currentIndex()) {
if (2 == m_pAlbumview->m_pRightStackWidget->currentIndex()
|| 6 == m_pAlbumview->m_pRightStackWidget->currentIndex()
|| (3 == m_pAlbumview->m_pRightStackWidget->currentIndex() && m_pAlbumview->m_currentType == COMMON_STR_CLASS)) {
m_pSearchEdit->setVisible(false);
} else {
#ifdef tablet_PC
Expand Down

0 comments on commit 23f4b22

Please sign in to comment.