Remember miniplayer location
This commit is contained in:
parent
898c0b08fa
commit
769bd8c7ed
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue