mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 05:52:31 +02:00
Update notification icon
This commit is contained in:
parent
b2ca92666f
commit
f0c981186d
2 changed files with 10 additions and 1 deletions
BIN
console/resources/console-notification-win.png
Normal file
BIN
console/resources/console-notification-win.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 32 KiB |
|
@ -552,6 +552,8 @@ function detectExistingStackManagerResources() {
|
||||||
const trayFilename = (osType == "Darwin" ? "console-tray-Template.png" : "console-tray.png");
|
const trayFilename = (osType == "Darwin" ? "console-tray-Template.png" : "console-tray.png");
|
||||||
const trayIcon = path.join(__dirname, '../resources/' + trayFilename);
|
const trayIcon = path.join(__dirname, '../resources/' + trayFilename);
|
||||||
|
|
||||||
|
const notificationIcon = path.join(__dirname, '../resources/console-notification-win.png');
|
||||||
|
|
||||||
// This method will be called when Electron has finished
|
// This method will be called when Electron has finished
|
||||||
// initialization and is ready to create browser windows.
|
// initialization and is ready to create browser windows.
|
||||||
app.on('ready', function() {
|
app.on('ready', function() {
|
||||||
|
@ -574,6 +576,13 @@ app.on('ready', function() {
|
||||||
maybeInstallDefaultContentSet(function() {
|
maybeInstallDefaultContentSet(function() {
|
||||||
maybeShowSplash();
|
maybeShowSplash();
|
||||||
|
|
||||||
|
console.log(notificationIcon);
|
||||||
|
notifier.notify({
|
||||||
|
icon: notificationIcon,
|
||||||
|
title: 'An update is available!',
|
||||||
|
message: 'High Fidelity version ' + 4 + ' is available',
|
||||||
|
wait: true
|
||||||
|
});
|
||||||
if (buildInfo.releaseType == 'PRODUCTION') {
|
if (buildInfo.releaseType == 'PRODUCTION') {
|
||||||
var currentVersion = null;
|
var currentVersion = null;
|
||||||
try {
|
try {
|
||||||
|
@ -588,7 +597,7 @@ app.on('ready', function() {
|
||||||
updateChecker.on('update-available', function(latestVersion, url) {
|
updateChecker.on('update-available', function(latestVersion, url) {
|
||||||
if (!hasShownUpdateNotification) {
|
if (!hasShownUpdateNotification) {
|
||||||
notifier.notify({
|
notifier.notify({
|
||||||
icon: trayIcon,
|
icon: notificationIcon,
|
||||||
title: 'An update is available!',
|
title: 'An update is available!',
|
||||||
message: 'High Fidelity version ' + latestVersion + ' is available',
|
message: 'High Fidelity version ' + latestVersion + ' is available',
|
||||||
wait: true,
|
wait: true,
|
||||||
|
|
Loading…
Reference in a new issue