From 96c93d1c202c9a6bbfe2141302234edda31098fa Mon Sep 17 00:00:00 2001 From: Ronan Abhamon Date: Wed, 18 Apr 2018 18:02:37 +0200 Subject: [PATCH] fix(SettingsCallsChat): disable correctly chat notification sound field --- assets/languages/fr_FR.ts | 2 +- ui/modules/Common/Form/Buttons/FileChooserButton.qml | 1 + ui/views/App/Settings/SettingsCallsChat.qml | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/assets/languages/fr_FR.ts b/assets/languages/fr_FR.ts index b8fd5420c..2b550df80 100644 --- a/assets/languages/fr_FR.ts +++ b/assets/languages/fr_FR.ts @@ -1188,7 +1188,7 @@ Cliquez ici : <a href="%1">%1</a> callRecorderEnabledLabel - Activer l'enregistrement d'appel + Activer l'enregistrement d'appel chatNotificationSoundEnabledLabel diff --git a/ui/modules/Common/Form/Buttons/FileChooserButton.qml b/ui/modules/Common/Form/Buttons/FileChooserButton.qml index 018d881ab..4220f00f6 100644 --- a/ui/modules/Common/Form/Buttons/FileChooserButton.qml +++ b/ui/modules/Common/Form/Buttons/FileChooserButton.qml @@ -100,6 +100,7 @@ TextField { id: mouseArea anchors.fill: parent + enabled: !textField.readOnly hoverEnabled: true onClicked: fileDialog.open() diff --git a/ui/views/App/Settings/SettingsCallsChat.qml b/ui/views/App/Settings/SettingsCallsChat.qml index 570d2efc9..fbb4377f3 100644 --- a/ui/views/App/Settings/SettingsCallsChat.qml +++ b/ui/views/App/Settings/SettingsCallsChat.qml @@ -152,7 +152,7 @@ TabContainer { label: qsTr('chatNotificationSoundLabel') FileChooserButton { - enabled: enableChatNotificationSound.checked + readOnly: !enableChatNotificationSound.checked selectedFile: SettingsModel.chatNotificationSoundPath onAccepted: SettingsModel.chatNotificationSoundPath = selectedFile