Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
starhcq committed Jul 13, 2023
2 parents 81de275 + 7d0acc3 commit 3d25b65
Show file tree
Hide file tree
Showing 16 changed files with 152 additions and 232 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/backup-to-gitlab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@ concurrency:
jobs:
backup-to-gitlabwh:
uses: linuxdeepin/.github/.github/workflows/backup-to-gitlabwh.yml@master
secrets:
BRIDGETOKEN: ${{ secrets.BRIDGETOKEN }}
secrets: inherit

backup-to-gitee:
uses: linuxdeepin/.github/.github/workflows/backup-to-gitee.yml@master
secrets:
GITEE_SYNC_TOKEN: ${{ secrets.GITEE_SYNC_TOKEN }}
secrets: inherit
6 changes: 1 addition & 5 deletions .github/workflows/call-build-distribution.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,4 @@ on:
jobs:
check_job:
uses: linuxdeepin/.github/.github/workflows/build-distribution.yml@master
secrets:
BUILD_GPG_PRIVATE_KEY: ${{ secrets.BUILD_GPG_PRIVATE_KEY }}
BUILD_SSH_PRIVATE_KEY: ${{ secrets.BUILD_SSH_PRIVATE_KEY }}
WEBDAV_PASSWD: ${{ secrets.WEBDAV_PASSWD }}
WEBDAV_USER: ${{ secrets.WEBDAV_USER }}
secrets: inherit
3 changes: 1 addition & 2 deletions .github/workflows/call-clacheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,4 @@ concurrency:
jobs:
clacheck:
uses: linuxdeepin/.github/.github/workflows/cla-check.yml@master
secrets:
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }}
secrets: inherit
2 changes: 1 addition & 1 deletion .github/workflows/cppcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- run: export
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
persist-credentials: false
Expand Down
1 change: 1 addition & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ int main(int argc, char *argv[])
app->loadTranslator();
app->setApplicationLicense("GPLV3");
app->setApplicationVersion(DApplication::buildVersion(VERSION));
app->setAttribute(Qt::AA_UseHighDpiPixmaps);
app->setOrganizationName("deepin");
app->setApplicationName("deepin-album");
app->setApplicationDisplayName(QObject::tr("Album"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ Item {
var paths = albumControl.getDayPaths(m_dayToken)
viewModel.clear()
for (var i = 0;i !== paths.length;++i) {
viewModel.append({url: paths[i], filePath: albumControl.localPath(paths[i])})
viewModel.append({url: paths[i], filePath: albumControl.url2localPath(paths[i])})

//顺便统计下图片和视频的数量
if(fileControl.isImage(paths[i])) {
Expand Down
4 changes: 2 additions & 2 deletions src/qml/ThumbnailImageView/DeviceAlbum/DeviceAlbum.qml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Rectangle {
//QML的翻译不支持%n的特性,只能拆成这种代码

var photoCountText = ""
var photoCount = albumControl.getDeviceAlbumInfoConut(devicePath, 1)
var photoCount = albumControl.getDeviceAlbumInfoConut(devicePath, 3)
if(photoCount === 0) {
photoCountText = ""
} else if(photoCount === 1) {
Expand All @@ -65,7 +65,7 @@ Rectangle {
}

var videoCountText = ""
var videoCount = albumControl.getDeviceAlbumInfoConut(devicePath, 2)
var videoCount = albumControl.getDeviceAlbumInfoConut(devicePath, 4)
if(videoCount === 0) {
videoCountText = ""
} else if(videoCount === 1) {
Expand Down
Loading

0 comments on commit 3d25b65

Please sign in to comment.