Don't allow links when rich formatting is diabled
This commit is contained in:
@@ -232,9 +232,6 @@ RowLayout {
|
|||||||
}
|
}
|
||||||
QQC2.ToolButton {
|
QQC2.ToolButton {
|
||||||
id: emojiButton
|
id: emojiButton
|
||||||
|
|
||||||
property bool isBusy: false
|
|
||||||
|
|
||||||
visible: !Kirigami.Settings.isMobile
|
visible: !Kirigami.Settings.isMobile
|
||||||
icon.name: "smiley"
|
icon.name: "smiley"
|
||||||
text: i18n("Emojis & Stickers")
|
text: i18n("Emojis & Stickers")
|
||||||
@@ -250,6 +247,7 @@ RowLayout {
|
|||||||
}
|
}
|
||||||
QQC2.ToolButton {
|
QQC2.ToolButton {
|
||||||
id: linkButton
|
id: linkButton
|
||||||
|
enabled: root.chatButtonHelper.richFormatEnabled
|
||||||
icon.name: "insert-link-symbolic"
|
icon.name: "insert-link-symbolic"
|
||||||
text: root.chatButtonHelper.currentLinkUrl.length > 0 ? i18nc("@action:button", "Edit link") : i18nc("@action:button", "Insert link")
|
text: root.chatButtonHelper.currentLinkUrl.length > 0 ? i18nc("@action:button", "Edit link") : i18nc("@action:button", "Insert link")
|
||||||
display: QQC2.AbstractButton.IconOnly
|
display: QQC2.AbstractButton.IconOnly
|
||||||
|
|||||||
Reference in New Issue
Block a user