fix: notification title on windows (#2139)

* fix windows notification title

* Update src/main/index.ts

---------

Co-authored-by: Mikael Finstad <finstaden@gmail.com>
pull/2152/head
Mylloon 1 year ago committed by GitHub
parent 87bb9df0d4
commit b86c1b15e8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -16,7 +16,7 @@ import timers from 'node:timers/promises';
import logger from './logger.js';
import menu from './menu.js';
import * as configStore from './configStore.js';
import { isLinux } from './util.js';
import { isLinux, isWindows } from './util.js';
import { appName, copyrightYear } from './common.js';
import attachContextMenu from './contextMenu.js';
import HttpServer from './httpServer.js';
@ -71,6 +71,13 @@ const appVersion = app.getVersion();
app.name = appName;
if (isWindows) {
// in order to set the title on OS notifications on Windows, this needs to be set to app.name
// https://github.com/mifi/lossless-cut/pull/2139
// https://stackoverflow.com/a/65863174/6519037
app.setAppUserModelId(app.name);
}
const isStoreBuild = process.windowsStore || process.mas;
const showVersion = !isStoreBuild;

Loading…
Cancel
Save