diff --git a/qortal-ui-core/src/components/settings-view/notifications-view.js b/qortal-ui-core/src/components/settings-view/notifications-view.js index b432f604..f0474536 100644 --- a/qortal-ui-core/src/components/settings-view/notifications-view.js +++ b/qortal-ui-core/src/components/settings-view/notifications-view.js @@ -3,6 +3,7 @@ import { connect } from 'pwa-helpers' import { store } from '../../store.js' import { doSetQChatNotificationConfig } from '../../redux/user/user-actions.js' import { translate, translateUnsafeHTML } from 'lit-translate' +import isElectron from 'is-electron' import '@material/mwc-checkbox' @@ -145,13 +146,23 @@ class NotificationsView extends connect(store)(LitElement) { -
-
this.checkCoreSettings()} class="q-button"> ${translate("settings.core")}
-
+ ${this.renderSetCoreButton()} ` } + renderSetCoreButton() { + if (!isElectron) { + return html` +
+
this.checkCoreSettings()} class="q-button"> ${translate("settings.core")}
+
+ ` + } else { + return html`` + } + } + checkCoreSettings() { window.electronAPI.setStartCore() }