added quit to main menu, added refresh playlists
This commit is contained in:
parent
2a63c89679
commit
b94dd5fb19
5 changed files with 23 additions and 0 deletions
|
@ -301,6 +301,7 @@
|
||||||
"action.createNew": "Create New...",
|
"action.createNew": "Create New...",
|
||||||
"action.openArtworkInBrowser": "Open artwork in browser",
|
"action.openArtworkInBrowser": "Open artwork in browser",
|
||||||
"action.scrollToTop": "Scroll to top",
|
"action.scrollToTop": "Scroll to top",
|
||||||
|
"action.refresh": "Refresh",
|
||||||
"menubar.options.view": "View",
|
"menubar.options.view": "View",
|
||||||
"menubar.options.reload": "Reload",
|
"menubar.options.reload": "Reload",
|
||||||
"menubar.options.forcereload": "Force Reload",
|
"menubar.options.forcereload": "Force Reload",
|
||||||
|
|
|
@ -1168,6 +1168,10 @@ export class BrowserWindow {
|
||||||
app.quit();
|
app.quit();
|
||||||
})
|
})
|
||||||
|
|
||||||
|
ipcMain.handle("quit-app", (_event, _) => {
|
||||||
|
app.quit();
|
||||||
|
})
|
||||||
|
|
||||||
app.on('before-quit', () => {
|
app.on('before-quit', () => {
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
|
@ -21,6 +21,7 @@ export class Store {
|
||||||
"state_format": "by {artist}",
|
"state_format": "by {artist}",
|
||||||
"details_format": "{title}",
|
"details_format": "{title}",
|
||||||
},
|
},
|
||||||
|
"refreshInterval": 120000,
|
||||||
"language": "en_US", // electron.app.getLocale().replace('-', '_') this can be used in future
|
"language": "en_US", // electron.app.getLocale().replace('-', '_') this can be used in future
|
||||||
"playbackNotifications": true,
|
"playbackNotifications": true,
|
||||||
"resumeOnStartupBehavior": "local",
|
"resumeOnStartupBehavior": "local",
|
||||||
|
|
|
@ -440,6 +440,9 @@ const app = new Vue({
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
quit() {
|
||||||
|
ipcRenderer.invoke("quit-app")
|
||||||
|
},
|
||||||
async openAppleMusicURL(url) {
|
async openAppleMusicURL(url) {
|
||||||
let properties = MusicKit.formattedMediaURL(url)
|
let properties = MusicKit.formattedMediaURL(url)
|
||||||
let item = {
|
let item = {
|
||||||
|
@ -1452,6 +1455,12 @@ const app = new Vue({
|
||||||
action: () => {
|
action: () => {
|
||||||
this.newPlaylistFolder()
|
this.newPlaylistFolder()
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: app.getLz("action.refresh"),
|
||||||
|
action: ()=>{
|
||||||
|
this.refreshPlaylists()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -121,6 +121,14 @@
|
||||||
$root.getLz("term.logout")
|
$root.getLz("term.logout")
|
||||||
}}</span>
|
}}</span>
|
||||||
</button>
|
</button>
|
||||||
|
<button class="usermenu-item" @click="quit()">
|
||||||
|
<span class="usermenu-item-icon" style="right: 2.5px">
|
||||||
|
<%- include("../svg/x.svg") %>
|
||||||
|
</span>
|
||||||
|
<span class="usermenu-item-name">{{
|
||||||
|
$root.getLz("term.quit")
|
||||||
|
}}</span>
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</transition>
|
</transition>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue