Officially support the system tray on Windows
This commit is contained in:
parent
23acbf284e
commit
af1f2ea449
24 changed files with 968 additions and 194 deletions
|
@ -57,6 +57,9 @@ const {
|
|||
const {
|
||||
DisappearingTimeDialog,
|
||||
} = require('../../ts/components/DisappearingTimeDialog');
|
||||
const {
|
||||
SystemTraySettingsCheckboxes,
|
||||
} = require('../../ts/components/conversation/SystemTraySettingsCheckboxes');
|
||||
|
||||
// State
|
||||
const { createTimeline } = require('../../ts/state/roots/createTimeline');
|
||||
|
@ -341,6 +344,7 @@ exports.setup = (options = {}) => {
|
|||
ProgressModal,
|
||||
StagedLinkPreview,
|
||||
DisappearingTimeDialog,
|
||||
SystemTraySettingsCheckboxes,
|
||||
Types: {
|
||||
Message: MediaGalleryMessage,
|
||||
},
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Copyright 2018-2020 Signal Messenger, LLC
|
||||
// Copyright 2018-2021 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
/* global $, Whisper */
|
||||
|
@ -29,6 +29,7 @@ const getInitialData = async () => ({
|
|||
|
||||
themeSetting: await window.getThemeSetting(),
|
||||
hideMenuBar: await window.getHideMenuBar(),
|
||||
systemTray: await window.getSystemTraySetting(),
|
||||
|
||||
notificationSetting: await window.getNotificationSetting(),
|
||||
audioNotification: await window.getAudioNotification(),
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Copyright 2016-2020 Signal Messenger, LLC
|
||||
// Copyright 2016-2021 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
/* global i18n: false */
|
||||
|
@ -274,6 +274,16 @@
|
|||
setFn: window.setHideMenuBar,
|
||||
});
|
||||
}
|
||||
new window.Whisper.ReactWrapperView({
|
||||
el: this.$('.system-tray-setting-container'),
|
||||
Component: window.Signal.Components.SystemTraySettingsCheckboxes,
|
||||
props: {
|
||||
i18n,
|
||||
initialValue: window.initialData.systemTray,
|
||||
isSystemTraySupported: Settings.isSystemTraySupported(),
|
||||
onChange: window.setSystemTraySetting,
|
||||
},
|
||||
});
|
||||
new CheckboxView({
|
||||
el: this.$('.always-relay-calls-setting'),
|
||||
name: 'always-relay-calls-setting',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue