Skip to content

Commit

Permalink
Auto Release: v0.2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
minskiter committed Nov 14, 2021
1 parent 4b9befe commit dbc3b3e
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 260 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mathfx",
"version": "0.2.4",
"version": "0.2.5",
"private": false,
"author": {
"name": "Creator-SN",
Expand Down Expand Up @@ -37,7 +37,6 @@
"fs-extra": "^9.1.0",
"ini": "^2.0.0",
"lowdb": "^1.0.0",
"node-sass": "^4.14.1",
"npm-check": "^5.9.2",
"sass-loader": "^8.0.2",
"vfluentdesign": "^0.1.33",
Expand All @@ -55,6 +54,7 @@
"electron-devtools-installer": "^3.1.0",
"eslint": "^6.7.2",
"eslint-plugin-vue": "^6.2.2",
"sass": "^1.43.4",
"vue-cli-plugin-electron-builder": "~2.0.0-rc.5",
"vue-template-compiler": "^2.6.11"
},
Expand Down
5 changes: 3 additions & 2 deletions src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ protocol.registerSchemesAsPrivileged([

let win = null;
async function createWindow() {

// Create the browser window.
win = new BrowserWindow({
frame: false,
Expand All @@ -31,6 +32,7 @@ async function createWindow() {
}
})
// init capture window
capture.init(win)

ipcMain.on("min", () => {
win.minimize();
Expand All @@ -53,13 +55,12 @@ async function createWindow() {
});

ipcMain.on("capture", () => {
capture.init(win)
capture.start('minimum')
})

ipcMain.on('getCaptureData', (e, data) => {
capture.targetWin.send('getCaptureData',data)
capture.close()
capture.close('hide')
capture.targetWin.show()
})

Expand Down
Loading

0 comments on commit dbc3b3e

Please sign in to comment.