Skip to content

Commit

Permalink
fix: Same cache image suffix with format
Browse files Browse the repository at this point in the history
缓存图片后缀和格式保持相同

Log: 修复缓存图片后缀和格式不同问题
Bug: https://pms.uniontech.com/bug-view-247311.html
Influence: SetWallpaper
  • Loading branch information
rb-union committed Mar 19, 2024
1 parent 98e50ca commit 4366451
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/album/controller/wallpapersetter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ bool WallpaperSetter::setBackground(const QString &pictureFilePath)
QString errMsg;
QFileInfo info(pictureFilePath);
QString tempWallPaperpath;
tempWallPaperpath = WALLPAPER_PATH + info.baseName() + ".png";
tempWallPaperpath = WALLPAPER_PATH + info.baseName() + ".jpg";
QFileInfo tempInfo(tempWallPaperpath);
if (!UnionImage_NameSpace::loadStaticImageFromFile(pictureFilePath, tImg, errMsg)) {
return false;
Expand Down

0 comments on commit 4366451

Please sign in to comment.