Skip to content

Commit

Permalink
Merge branch 'qier222:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
shih-liang authored Oct 23, 2021
2 parents 72ecfea + 9b565c4 commit 28b79f3
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
VUE_APP_NETEASE_API_URL=/api
VUE_APP_ELECTRON_API_URL=/api
VUE_APP_ELECTRON_API_URL_DEV=http://127.0.0.1:3000
VUE_APP_ELECTRON_API_URL_DEV=http://127.0.0.1:10754
VUE_APP_LASTFM_API_KEY=09c55292403d961aa517ff7f5e8a3d9c
VUE_APP_LASTFM_API_SHARED_SECRET=307c9fda32b3904e53654baff215cb67
DEV_SERVER_PORT=20201
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": "yesplaymusic",
"version": "0.4.1",
"version": "0.4.2",
"private": true,
"description": "A third party music player for Netease Music",
"author": "hawtim<[email protected]>",
Expand Down
14 changes: 13 additions & 1 deletion src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class Background {
});
this.neteaseMusicAPI = null;
this.expressApp = null;
this.willQuitApp = isMac ? false : true;
this.willQuitApp = !isMac;

this.init();
}
Expand Down Expand Up @@ -482,6 +482,18 @@ class Background {
// unregister all global shortcuts
globalShortcut.unregisterAll();
});

if (!isMac) {
app.on('second-instance', (e, cl, wd) => {
if (this.window) {
this.window.show();
if (this.window.isMinimized()) {
this.window.restore();
}
this.window.focus();
}
});
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/views/settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<option value="en">🇬🇧 English</option>
<option value="tr">🇹🇷 Türkçe</option>
<option value="zh-CN">🇨🇳 简体中文</option>
<option value="zh-TW">ᴛᴡ 繁體中文</option>
<option value="zh-TW">繁體中文</option>
</select>
</div>
</div>
Expand Down

0 comments on commit 28b79f3

Please sign in to comment.