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