refactor: NetworkMonitor, set m_isMonitoring initial state in header
This commit is contained in:
parent
3d8cf17d57
commit
a0f06d907f
2 changed files with 2 additions and 2 deletions
|
|
@ -36,7 +36,7 @@ bool NetworkMonitor::isVirtualInterface(const QString &interfaceName) const
|
||||||
return virtualPatterns.contains(interfaceName, Qt::CaseInsensitive);
|
return virtualPatterns.contains(interfaceName, Qt::CaseInsensitive);
|
||||||
}
|
}
|
||||||
|
|
||||||
NetworkMonitor::NetworkMonitor(QObject *parent) : QObject(parent), m_checkTimer(new QTimer(this)), m_isMonitoring(false)
|
NetworkMonitor::NetworkMonitor(QObject *parent) : QObject(parent), m_checkTimer(new QTimer(this))
|
||||||
{
|
{
|
||||||
connect(m_checkTimer, &QTimer::timeout, this, &NetworkMonitor::updateNetworkState);
|
connect(m_checkTimer, &QTimer::timeout, this, &NetworkMonitor::updateNetworkState);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -82,7 +82,7 @@ private:
|
||||||
|
|
||||||
QTimer *m_checkTimer; ///< Timer for periodic network checks
|
QTimer *m_checkTimer; ///< Timer for periodic network checks
|
||||||
QList<QHostAddress> m_lastAddresses; ///< Last known IP addresses
|
QList<QHostAddress> m_lastAddresses; ///< Last known IP addresses
|
||||||
bool m_isMonitoring; ///< Flag indicating if monitoring is active
|
bool m_isMonitoring = false; ///< Flag indicating if monitoring is active
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace deskflow::gui
|
} // namespace deskflow::gui
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue