mirror of
https://github.com/lubosz/overte.git
synced 2025-04-07 15:22:09 +02:00
SysTray Setup. server-console.exe should be included in client-only
installs. By default, on new install, tray notifier should be enabled.
This commit is contained in:
parent
be87773b2c
commit
2c6e9349eb
3 changed files with 19 additions and 13 deletions
|
@ -36,7 +36,11 @@ if (APPLE)
|
|||
PROGRAMS "${CMAKE_CURRENT_BINARY_DIR}/${PACKAGED_CONSOLE_FOLDER}"
|
||||
DESTINATION ${CONSOLE_INSTALL_DIR}
|
||||
COMPONENT ${SERVER_COMPONENT}
|
||||
COMPONENT ${CLIENT_COMPONENT}
|
||||
)
|
||||
install(
|
||||
PROGRAMS "${CMAKE_CURRENT_BINARY_DIR}/${PACKAGED_CONSOLE_FOLDER}"
|
||||
DESTINATION ${CONSOLE_INSTALL_DIR}
|
||||
COMPONENT ${CLIENT_COMPONENT}
|
||||
)
|
||||
elseif (WIN32)
|
||||
set(CONSOLE_DESTINATION "${CMAKE_CURRENT_BINARY_DIR}/${PACKAGED_CONSOLE_FOLDER}")
|
||||
|
@ -45,7 +49,11 @@ elseif (WIN32)
|
|||
DIRECTORY "${CONSOLE_DESTINATION}/"
|
||||
DESTINATION ${CONSOLE_INSTALL_DIR}
|
||||
COMPONENT ${SERVER_COMPONENT}
|
||||
COMPONENT ${CLIENT_COMPONENT}
|
||||
)
|
||||
install(
|
||||
DIRECTORY "${CONSOLE_DESTINATION}/"
|
||||
DESTINATION ${CONSOLE_INSTALL_DIR}
|
||||
COMPONENT ${CLIENT_COMPONENT}
|
||||
)
|
||||
|
||||
# sign the copied server console executable after install
|
||||
|
|
|
@ -509,11 +509,13 @@ function buildMenuArray(serverState) {
|
|||
menuArray.push(labels.share);
|
||||
menuArray.push(separator);
|
||||
if (isInterfaceInstalled()) {
|
||||
menuArray.push(labels.goto);
|
||||
menuArray.push(labels.people);
|
||||
menuArray.push(labels.wallet);
|
||||
menuArray.push(labels.marketplace);
|
||||
menuArray.push(separator);
|
||||
if(trayNotifications.enabled()) {
|
||||
menuArray.push(labels.goto);
|
||||
menuArray.push(labels.people);
|
||||
menuArray.push(labels.wallet);
|
||||
menuArray.push(labels.marketplace);
|
||||
menuArray.push(separator);
|
||||
}
|
||||
menuArray.push(labels.showNotifications);
|
||||
menuArray.push(separator);
|
||||
}
|
||||
|
@ -545,10 +547,6 @@ function updateLabels(serverState) {
|
|||
}
|
||||
|
||||
labels.showNotifications.checked = trayNotifications.enabled();
|
||||
labels.people.visible = trayNotifications.enabled();
|
||||
labels.goto.visible = trayNotifications.enabled();
|
||||
labels.wallet.visible = trayNotifications.enabled();
|
||||
labels.marketplace.visible = trayNotifications.enabled();
|
||||
labels.goto.icon = pendingNotifications[HifiNotificationType.GOTO] ? menuNotificationIcon : null;
|
||||
labels.people.icon = pendingNotifications[HifiNotificationType.PEOPLE] ? menuNotificationIcon : null;
|
||||
labels.wallet.icon = pendingNotifications[HifiNotificationType.WALLET] ? menuNotificationIcon : null;
|
||||
|
|
|
@ -139,7 +139,7 @@ function HifiNotifications(config, menuNotificationCallback) {
|
|||
|
||||
HifiNotifications.prototype = {
|
||||
enable: function (enabled) {
|
||||
this.config.set("enableTrayNotifications", enabled);
|
||||
this.config.set("disableTrayNotifications", !enabled);
|
||||
if (enabled) {
|
||||
var _this = this;
|
||||
this.storiesPollTimer = setInterval(function () {
|
||||
|
@ -185,7 +185,7 @@ HifiNotifications.prototype = {
|
|||
}
|
||||
},
|
||||
enabled: function () {
|
||||
return this.config.get("enableTrayNotifications", true);
|
||||
return !this.config.get("disableTrayNotifications", false);
|
||||
},
|
||||
stopPolling: function () {
|
||||
this.config.set("storiesNotifySince", this.storiesSince.toISOString());
|
||||
|
|
Loading…
Reference in a new issue