TheDesk 21.0.0(Mayu)

This commit is contained in:
cutls
2020-05-10 21:59:25 +09:00
parent 7e6d03fd53
commit b1ccfa85ba
3 changed files with 19 additions and 10 deletions

View File

@@ -24,10 +24,14 @@ function dl(mainWindow, lang_path, base, dirname) {
height: 400,
transparent: false, // ウィンドウの背景を透過
frame: false, // 枠の無いウィンドウ
resizable: false
resizable: false,
show: false
})
var lang = fs.readFileSync(lang_path, 'utf8')
updatewin.loadURL(base + lang + '/update.html')
updatewin.webContents.once('dom-ready', () => {
updatewin.show()
})
return 'true'
} else {
return false
@@ -36,7 +40,7 @@ function dl(mainWindow, lang_path, base, dirname) {
//アプデDL
ipc.on('download-btn', async (e, args) => {
function dl(url, file, dir, e) {
e.sender.webContents.send('mess', 'ダウンロードを開始します。')
e.sender.webContents.send('mess', 'Start...')
const opts = {
directory: dir,
filename: file,