Skip to content

Commit

Permalink
feat: 修改应用图标
Browse files Browse the repository at this point in the history
  • Loading branch information
onaug6th committed Oct 3, 2021
1 parent bb4203d commit ae7f59b
Show file tree
Hide file tree
Showing 13 changed files with 16 additions and 10 deletions.
Binary file modified public/icon.icns
Binary file not shown.
Binary file added public/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/icons.iconset/icon_128x128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/icons.iconset/icon_128x128@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/icons.iconset/icon_16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/icons.iconset/icon_16x16@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/icons.iconset/icon_256x256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/icons.iconset/icon_256x256@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/icons.iconset/icon_32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/icons.iconset/icon_32x32@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/icons.iconset/icon_512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/icons.iconset/icon_512x512@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 16 additions & 10 deletions src/main/modules/dev/dev.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,22 @@ class DevService {
if (plugin.reviewStatus === ReviewStatus.pending) {
const review = await api.lastestReview(plugin.id);

// 更新内存中插件信息
plugin.reviewStatus = review.status;
plugin.reviewContent = review.content;

// 更新数据库中的插件信息
this.updatePluginInDb(plugin.id, {
...plugin,
reviewStatus: review.status,
reviewContent: review.content
});
if (review) {
// 更新内存中插件信息
plugin.reviewStatus = review.status;
plugin.reviewContent = review.content;

// 更新数据库中的插件信息
this.updatePluginInDb(plugin.id, {
...plugin,
reviewStatus: review.status,
reviewContent: review.content
});
} else {
// 更新内存中插件信息
plugin.reviewStatus = ReviewStatus.success;
plugin.reviewContent = '';
}
}
}
}
Expand Down

0 comments on commit ae7f59b

Please sign in to comment.