🐛 Fix: mini window hidden bug in linux

ISSUES CLOSED: #239
This commit is contained in:
Molunerfinn 2019-04-17 14:45:08 +08:00
parent 4e02244ebe
commit 466dbec4b7

View File

@ -225,26 +225,18 @@ const createMiniWidow = () => {
let obj = { let obj = {
height: 64, height: 64,
width: 64, width: 64,
show: false, show: process.platform === 'linux',
frame: false, frame: false,
fullscreenable: false, fullscreenable: false,
skipTaskbar: true, skipTaskbar: true,
resizable: false, resizable: false,
transparent: true, transparent: process.platform !== 'linux',
icon: `${__static}/logo.png`, icon: `${__static}/logo.png`,
webPreferences: { webPreferences: {
backgroundThrottling: false backgroundThrottling: false
} }
} }
if (process.platform === 'linux') {
obj.transparent = false
}
if (process.platform === 'darwin') {
obj.show = false
}
if (db.read().get('settings.miniWindowOntop').value()) { if (db.read().get('settings.miniWindowOntop').value()) {
obj.alwaysOnTop = true obj.alwaysOnTop = true
} }