2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Hide push to talk release delay option by default.

This commit is contained in:
John Preston
2020-12-06 19:13:18 +04:00
parent bfce832a7a
commit 628a02d99c
3 changed files with 56 additions and 55 deletions

View File

@@ -746,13 +746,8 @@ auto GroupCall::ensureGlobalShortcutManager()
void GroupCall::applyGlobalShortcutChanges() {
auto &settings = Core::App().settings();
if (!settings.groupCallPushToTalk()) {
_shortcutManager = nullptr;
_pushToTalk = nullptr;
return;
} else if (settings.groupCallPushToTalkShortcut().isEmpty()) {
settings.setGroupCallPushToTalk(false);
Core::App().saveSettingsDelayed();
if (!settings.groupCallPushToTalk()
|| settings.groupCallPushToTalkShortcut().isEmpty()) {
_shortcutManager = nullptr;
_pushToTalk = nullptr;
return;