This commit is contained in:
cutls 2020-09-07 00:14:51 +09:00
parent e75d52f985
commit 48b3ed3aca
3 changed files with 3 additions and 2 deletions

View File

@ -28,6 +28,7 @@ function dl(mainWindow, lang_path, base, dirname) {
show: false show: false
}) })
var lang = fs.readFileSync(lang_path, 'utf8') var lang = fs.readFileSync(lang_path, 'utf8')
//updatewin.toggleDevTools()
updatewin.loadURL(base + lang + '/update.html') updatewin.loadURL(base + lang + '/update.html')
updatewin.webContents.once('dom-ready', () => { updatewin.webContents.once('dom-ready', () => {
updatewin.show() updatewin.show()

View File

@ -174,7 +174,7 @@ function system(mainWindow, dir, lang, dirname) {
}) })
nanowindow.loadURL(dir + '/nano.html') nanowindow.loadURL(dir + '/nano.html')
nanowindow.setAlwaysOnTop(true) nanowindow.setAlwaysOnTop(true)
nanowindow.toggleDevTools() //nanowindow.toggleDevTools()
nanowindow.setPosition(window_pos[0], window_pos[1]) nanowindow.setPosition(window_pos[0], window_pos[1])
nanowindow.on('close', function () { nanowindow.on('close', function () {
fs.writeFileSync(nano_info_path, JSON.stringify(nanowindow.getPosition())) fs.writeFileSync(nano_info_path, JSON.stringify(nanowindow.getPosition()))

View File

@ -86,7 +86,7 @@
<i class="material-icons pointer waves-effect" onclick="about();">info</i> <i class="material-icons pointer waves-effect" onclick="about();">info</i>
<i class="material-icons pointer waves-effect" onclick="skipper();">clear</i> <i class="material-icons pointer waves-effect" onclick="skipper();">clear</i>
<!--a href="update.html">Reload</a--> <!--a href="update.html">Reload</a-->
<div id="start"> <div id="start" style="filter: brightness(100%)">
<div id="box" class="show"> <div id="box" class="show">
<h2>TheDesk</h2> <h2>TheDesk</h2>
<p>@@updatehere@@</p> <p>@@updatehere@@</p>