fixed dev app icon

This commit is contained in:
antelle 2020-05-10 09:49:09 +02:00
parent db31e65cdf
commit 6e7f2c570f
No known key found for this signature in database
GPG Key ID: 094A2F2D6136A4EE
2 changed files with 10 additions and 0 deletions

View File

@ -54,6 +54,7 @@ const defaultBgColor = '#282C34';
perfTimestamps && perfTimestamps.push({ name: 'defining args', ts: process.hrtime() });
setDevAppIcon();
setEnv();
restorePreferences();
@ -556,6 +557,15 @@ function deleteRecursive(dir) {
fs.rmdirSync(dir);
}
function setDevAppIcon() {
if (isDev && htmlPath) {
const icon = electron.nativeImage.createFromPath(
path.join(__dirname, '../graphics/512x512.png')
);
app.dock.setIcon(icon);
}
}
// When sending a PUT XMLHttpRequest Chromium includes the header "Origin: file://".
// This confuses some WebDAV clients, notably OwnCloud.
// The header is invalid, so removing it everywhere it occurs should do no harm.

BIN
graphics/512x512.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB