From ead8352c9397f09585f4281cd7c2124b640db69e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mika=C3=ABl=20Capelle?= Date: Wed, 11 Nov 2020 11:22:10 +0100 Subject: [PATCH] Remove isActive() for the Python proxy plugin. --- src/proxy/proxypython.cpp | 14 +++++++------- src/proxy/proxypython.h | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/proxy/proxypython.cpp b/src/proxy/proxypython.cpp index eb9aa90..39b2813 100644 --- a/src/proxy/proxypython.cpp +++ b/src/proxy/proxypython.cpp @@ -117,7 +117,7 @@ bool ProxyPython::init(IOrganizer *moInfo) { m_MOInfo = moInfo; - if (m_MOInfo && !m_MOInfo->pluginSetting(name(), "enabled").toBool()) { + if (m_MOInfo && !m_MOInfo->isPluginEnabled(this)) { m_LoadFailure = FAIL_NONE; return false; } @@ -197,9 +197,14 @@ QString ProxyPython::name() const return "Python Proxy"; } +QString ProxyPython::localizedName() const +{ + return tr("Python Proxy"); +} + QString ProxyPython::author() const { - return "Tannin"; + return "Tannin & Holt59"; } QString ProxyPython::description() const @@ -212,11 +217,6 @@ VersionInfo ProxyPython::version() const return VersionInfo(2, 1, 0, VersionInfo::RELEASE_FINAL); } -bool ProxyPython::isActive() const -{ - return m_LoadFailure == FAIL_NOTINIT; -} - QList ProxyPython::settings() const { QList result; diff --git a/src/proxy/proxypython.h b/src/proxy/proxypython.h index a41f856..708ce4f 100644 --- a/src/proxy/proxypython.h +++ b/src/proxy/proxypython.h @@ -42,10 +42,10 @@ public: virtual bool init(MOBase::IOrganizer *moInfo); virtual QString name() const; + virtual QString localizedName() const; virtual QString author() const; virtual QString description() const; virtual MOBase::VersionInfo version() const; - virtual bool isActive() const; virtual QList settings() const; QStringList pluginList(const QString &pluginPath) const;