chore: update the file

This commit is contained in:
x-tools-author 2025-03-07 18:51:17 +08:00
parent 17dba1c148
commit 01df3affa6
2 changed files with 0 additions and 15 deletions

View File

@ -15,14 +15,6 @@
AbstractIO::AbstractIO(QObject *parent)
: QThread{parent}
{
connect(this, &AbstractIO::started, this, [=]() {
this->m_isWorking = true;
emit this->isWorkingChanged();
});
connect(this, &AbstractIO::finished, this, [=]() {
this->m_isWorking = false;
emit this->isWorkingChanged();
});
connect(this, &AbstractIO::errorOccurred, this, [=](const QString &errorString) {
qWarning() << "Error occurred: " << errorString;
exit();
@ -67,11 +59,6 @@ void AbstractIO::load(const QVariantMap &data)
emit isEnableChanged();
}
bool AbstractIO::isWorking()
{
return m_isWorking;
}
bool AbstractIO::isEnable()
{
return m_enable;

View File

@ -24,7 +24,6 @@ public:
virtual QVariantMap save() const;
virtual void load(const QVariantMap &data);
bool isWorking();
bool isEnable();
void setIsEnable(bool enable);
@ -37,7 +36,6 @@ signals:
void isEnableChanged();
protected:
std::atomic_bool m_isWorking{false};
std::atomic_bool m_enable{true};
private: