Skip to content

Commit

Permalink
fix: Resolve the issue of not hiding image operation buttons after de…
Browse files Browse the repository at this point in the history
…leting all images

   Resolve the issue of not hiding image operation buttons after deleting all images

Log: Resolve the issue of not hiding image operation buttons after deleting all images
  • Loading branch information
starhcq committed Jul 25, 2024
1 parent e50c5c3 commit 76c51be
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/qml/AlbumTitle.qml
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ TitleBar {
// 比例+年月日按钮组/下拉框
RowLayout {
spacing: 5

Layout.alignment: Qt.AlignLeft
// 比例按钮
ToolButton {
id: range1Button
Expand Down Expand Up @@ -415,7 +415,7 @@ TitleBar {
RowLayout {
spacing: iconSpacing
Layout.alignment: Qt.AlignRight
Layout.minimumWidth: iconSize * 3 + iconSpacing * (3 - 1)
//Layout.minimumWidth: iconSize * 3 + iconSpacing * (3 - 1)
ToolButton {
visible: GStatus.selectedPaths.length === 0 || GStatus.currentViewType === Album.Types.ViewDevice || GStatus.currentViewType === Album.Types.ViewRecentlyDeleted
id: titleImportBtn
Expand Down Expand Up @@ -522,7 +522,6 @@ TitleBar {
}
}


Connections {
target: GStatus
onSigFlushSearchView: {
Expand Down
1 change: 1 addition & 0 deletions src/qml/Control/ListView/ThumbnailListViewTools.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ function executeViewImage() {
function executeDelete() {
if ( thumnailListType !== Album.Types.ThumbnailTrash ){
albumControl.insertTrash(GStatus.selectedPaths)
thumbnailModel.clearSelection()
} else {
albumControl.deleteImgFromTrash(selectedPaths)
selectAll(false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ BaseView {
topMargin: 10
left: parent.left
}
visible: bShowImportTips
visible: false
font: DTK.fontManager.t6
text: qsTr("0 item")
}
Expand Down

0 comments on commit 76c51be

Please sign in to comment.