Remove unneeded property
This commit is contained in:
@@ -434,11 +434,6 @@ void Controller::removeConnection(const QString &userId)
|
||||
}
|
||||
}
|
||||
|
||||
bool Controller::csSupported() const
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
void Controller::revertToDefaultConfig()
|
||||
{
|
||||
const auto config = NeoChatConfig::self();
|
||||
|
||||
@@ -50,8 +50,6 @@ class Controller : public QObject
|
||||
|
||||
Q_PROPERTY(QStringList accountsLoading MEMBER m_accountsLoading NOTIFY accountsLoadingChanged)
|
||||
|
||||
Q_PROPERTY(bool csSupported READ csSupported CONSTANT)
|
||||
|
||||
public:
|
||||
static Controller &instance();
|
||||
static Controller *create(QQmlEngine *engine, QJSEngine *)
|
||||
@@ -103,8 +101,6 @@ public:
|
||||
|
||||
Q_INVOKABLE void removeConnection(const QString &userId);
|
||||
|
||||
bool csSupported() const;
|
||||
|
||||
/**
|
||||
* @brief Revert all configuration values to their default.
|
||||
*
|
||||
|
||||
@@ -99,7 +99,6 @@ KirigamiComponents.ConvergentContextMenu {
|
||||
dialog.close();
|
||||
});
|
||||
}
|
||||
enabled: Controller.csSupported
|
||||
}
|
||||
|
||||
QQC2.Action {
|
||||
|
||||
@@ -92,7 +92,7 @@ QQC2.ScrollView {
|
||||
}
|
||||
|
||||
Delegates.RoundedItemDelegate {
|
||||
visible: root.room.isDirectChat() && Controller.csSupported
|
||||
visible: root.room.isDirectChat()
|
||||
icon.name: "security-low-symbolic"
|
||||
text: i18nc("@action:button", "Verify user")
|
||||
|
||||
|
||||
@@ -83,10 +83,8 @@ FormCard.FormCardPage {
|
||||
}
|
||||
FormCard.FormHeader {
|
||||
title: i18nc("@title:group", "Encryption")
|
||||
visible: Controller.csSupported
|
||||
}
|
||||
FormCard.FormCard {
|
||||
visible: Controller.csSupported
|
||||
FormCard.FormButtonDelegate {
|
||||
id: importKeysDelegate
|
||||
text: i18nc("@action:button", "Import Keys")
|
||||
|
||||
Reference in New Issue
Block a user