Skip to content

Commit

Permalink
Place unified search placeholder view in main tray window view when i…
Browse files Browse the repository at this point in the history
…n focus and no text is entered

Signed-off-by: Claudio Cambra <[email protected]>
  • Loading branch information
claucambra committed Nov 19, 2024
1 parent c3f828a commit b6d508b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/gui/tray/MainWindow.qml
Original file line number Diff line number Diff line change
Expand Up @@ -630,6 +630,18 @@ ApplicationWindow {
anchors.margins: Style.trayHorizontalMargin
}

UnifiedSearchPlaceholderView {
id: unifiedSearchPlaceholderView

anchors.top: bottomUnifiedSearchInputSeparator.bottom
anchors.left: trayWindowMainItem.left
anchors.right: trayWindowMainItem.right
anchors.bottom: trayWindowMainItem.bottom
anchors.topMargin: Style.trayHorizontalMargin

visible: trayWindowUnifiedSearchInputContainer.activateSearchFocus && !UserModel.currentUser.unifiedSearchResultsListModel.searchTerm
}

UnifiedSearchResultNothingFound {
id: unifiedSearchResultNothingFound

Expand Down

0 comments on commit b6d508b

Please sign in to comment.