Skip to content

Commit

Permalink
Merge pull request #189 from GeoffreyChen777/electron-dev
Browse files Browse the repository at this point in the history
v2.1.1
  • Loading branch information
GeoffreyChen777 authored Nov 6, 2022
2 parents ff79fdc + 21cad33 commit 0dc2b78
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 12 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG_CN.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## v2.1.1 06/11 2022

1. 修复了一个 Bug。

## v2.1.0 05/11 2022

1. 文章详情面板添加了引用计数。
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG_EN.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# v2.1.1 Nov 06 2022

1. Fixed a bug.

# v2.1.0 Nov 05 2022

1. Add citation count in the details panel.
Expand Down
18 changes: 10 additions & 8 deletions app/preference/preference.ts
Original file line number Diff line number Diff line change
Expand Up @@ -524,16 +524,18 @@ export class Preference {
"downloaders"
) as unknown as DownloaderPreference[];

for (const defaultDownloader of defaultPreferences.downloaders) {
if (
!existingDownloaderArray.find(
(downloader) => downloader.name === defaultDownloader.name
)
) {
existingDownloaderArray.push(defaultDownloader);
if (existingDownloaderArray) {
for (const defaultDownloader of defaultPreferences.downloaders) {
if (
!existingDownloaderArray.find(
(downloader) => downloader.name === defaultDownloader.name
)
) {
existingDownloaderArray.push(defaultDownloader);
}
}
this.store.set("downloaders", existingDownloaderArray);
}
this.store.set("downloaders", existingDownloaderArray);

for (const key in defaultPreferences) {
if (!this.store.has(key)) {
Expand Down
3 changes: 2 additions & 1 deletion app/renderer/ui/whats-new-view/whats-new-view-cn.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,11 @@ onMounted(() => {
v-else
/>
<p class="text-center text-2xl font-bold mb-8">
Paperlib 2.1.0 更新内容
Paperlib 2.1.0 - 2.1.1 更新内容
</p>

<ul class="list-disc mb-5">
<li>修复了一个针对新用户的重要 Bug。</li>
<li>文章详情面板添加了引用计数。</li>
<li>从 adsabs.harvard.edu 导入时可以自动下载 PDF。</li>
<li>一个新的 PDF 下载器: semanticscholar.org.</li>
Expand Down
3 changes: 2 additions & 1 deletion app/renderer/ui/whats-new-view/whats-new-view-en.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,11 @@ onMounted(() => {
v-else
/>
<p class="text-center text-2xl font-bold mb-8">
What's New in Paperlib 2.1.0
What's New in Paperlib 2.1.0 - 2.1.1
</p>

<ul class="list-disc mb-5">
<li>Fixed a fatal bug for new users.</li>
<li>Add citation count in the details panel.</li>
<li>
PDFs will be automatically downloaded when importing papers from
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ export class WebDavFileBackend implements FileBackend {
success = await this._local2localMove(sourceURL, targetCacheURL);
success = await this._local2serverMove(sourceURL, targetURL);
if (this.preference.get("sourceFileOperation") as string === 'cut') {
await fsPromise.unlink(sourceURL);
await fsPromise.unlink(sourceURL.replace("file://", ""));
}
} else if (sourceURL.startsWith("webdav://")) {
success = await this._server2serverMove(sourceURL, targetURL);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "paperlib",
"version": "2.1.0",
"version": "2.1.1",
"main": "dist/app/main/index.js",
"description": "A simple academic paper management tool.",
"author": "Geoffrey Chen <[email protected]>",
Expand Down

0 comments on commit 0dc2b78

Please sign in to comment.