miniplayer settings toggle to appear on top of windows.

working on linux, probs working elsewhere reading documentation.
This commit is contained in:
Calum Clark CSM2019 2022-01-24 22:31:57 +00:00
parent 4d6eb2cd64
commit d42976f8db
4 changed files with 18 additions and 1 deletions

View file

@ -3328,10 +3328,14 @@ const app = new Vue({
ipcRenderer.send('unmaximize');
ipcRenderer.send('windowmin', 250, 250)
ipcRenderer.send('windowresize', 300, 300, false)
if (this.cfg.visual.miniplayer_ontop) {
ipcRenderer.send('windowontop', true)
}
app.appMode = 'mini';
} else {
ipcRenderer.send('windowmin', 844, 410)
ipcRenderer.send('windowresize', this.tmpWidth, this.tmpHeight, false)
ipcRenderer.send('windowontop', false)
app.appMode = 'player';
}
},