Skip to content

Commit

Permalink
fixed: pip did not auto close
Browse files Browse the repository at this point in the history
  • Loading branch information
kewool committed Sep 2, 2023
1 parent 8a04427 commit 4c847f7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
1 change: 1 addition & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,7 @@ ipcMain.on("openChat", (evt, name) => {

ipcMain.on("fixedPIP", (evt, fixed, option) => {
const pip = BrowserWindow.fromWebContents(evt.sender);
pip.resizable = !fixed;
pip.setIgnoreMouseEvents(fixed, option);
});

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": "stella_lux",
"version": "1.0.2",
"version": "1.0.3",
"description": "",
"main": "main.js",
"scripts": {
Expand Down
12 changes: 2 additions & 10 deletions src/pages/background/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,9 @@ ipcRenderer.on("login", () => {
!auto_start[e].status
) {
ipcRenderer.send("getStream", e);
} else if (
auto_start[e].enabled &&
auto_start[e].closed &&
!auto_start[e].status
) {
} else if (auto_start[e].closed && !auto_start[e].status) {
ipcRenderer.send("isStreamOff", e);
} else if (
auto_start[e].enabled &&
!auto_start[e].closed &&
auto_start[e].status
) {
} else if (!auto_start[e].closed && auto_start[e].status) {
ipcRenderer.send("isStreamOffWhileOn", e);
}
});
Expand Down

0 comments on commit 4c847f7

Please sign in to comment.