Skip to content
This repository has been archived by the owner on Dec 18, 2023. It is now read-only.

Commit

Permalink
fix: 修复windows无法保存壁纸的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
ambition-echo committed Feb 1, 2023
1 parent 3d86a0c commit cf6229e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion earth_wallpaper/systemtray.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def save_current_img():
dir_ = QDir(img_dir)
name_filters = ["[1-9]*"]
dir_.setNameFilters(name_filters)
files = dir_.entryList(QDir.Files, QDir.Name)
files = dir_.entryList(QDir.Name)
picture_dir = QStandardPaths.writableLocation(QStandardPaths.PicturesLocation) + "/earth-wallpaper"
if not QDir(picture_dir).exists():
QDir(picture_dir).mkpath(picture_dir)
Expand Down

0 comments on commit cf6229e

Please sign in to comment.