Remember miniplayer location

This commit is contained in:
ace-beattie 2022-05-05 21:02:52 -06:00
parent 898c0b08fa
commit 769bd8c7ed

View file

@ -150,6 +150,8 @@ const app = new Vue({
tmpWidth: '', tmpWidth: '',
tmpX: '', tmpX: '',
tmpY: '', tmpY: '',
miniTmpX: '',
miniTmpY: '',
tmpVar: [], tmpVar: [],
notification: false, notification: false,
chrome: { chrome: {
@ -4115,9 +4117,12 @@ const app = new Vue({
this.tmpY = window.screenY; this.tmpY = window.screenY;
ipcRenderer.send('unmaximize'); ipcRenderer.send('unmaximize');
ipcRenderer.send('windowmin', 250, 250) ipcRenderer.send('windowmin', 250, 250)
ipcRenderer.send('windowmove', this.miniTmpX, this.miniTmpY)
ipcRenderer.send('windowresize', 300, 300, false) ipcRenderer.send('windowresize', 300, 300, false)
app.appMode = 'mini'; app.appMode = 'mini';
} else { } else {
this.miniTmpX = window.screenX;
this.miniTmpY = window.screenY;
ipcRenderer.send('windowmin', 844, 410) ipcRenderer.send('windowmin', 844, 410)
ipcRenderer.send('windowresize', this.tmpWidth, this.tmpHeight, false) ipcRenderer.send('windowresize', this.tmpWidth, this.tmpHeight, false)
ipcRenderer.send('windowmove', this.tmpX, this.tmpY) ipcRenderer.send('windowmove', this.tmpX, this.tmpY)