Remove unneeded property

This commit is contained in:
Tobias Fella
2025-03-22 18:51:39 +01:00
parent 37d77f579a
commit 6b7ad6b1af
5 changed files with 1 additions and 13 deletions

View File

@@ -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();

View File

@@ -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.
* *

View File

@@ -99,7 +99,6 @@ KirigamiComponents.ConvergentContextMenu {
dialog.close(); dialog.close();
}); });
} }
enabled: Controller.csSupported
} }
QQC2.Action { QQC2.Action {

View File

@@ -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")

View File

@@ -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")