提交 55870109 编写于 作者: B Benjamin Pasero

distro: extract env.product.win32AppUserModelId

上级 546befe0
......@@ -31,6 +31,7 @@ export interface IProductConfiguration {
png: string;
}
},
win32AppUserModelId: string;
dataFolderName: string;
downloadUrl: string;
updateUrl: string;
......
......@@ -96,8 +96,8 @@ function main(ipcServer: Server, userEnv: IEnv): void {
// This will help Windows to associate the running program with
// any shortcut that is pinned to the taskbar and prevent showing
// two icons in the taskbar for the same app.
if (platform.isWindows) {
app.setAppUserModelId('Microsoft.VisualStudioCode');
if (platform.isWindows && env.product.win32AppUserModelId) {
app.setAppUserModelId(env.product.win32AppUserModelId);
}
// Set programStart in the global scope
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册