Don't serialize apps for the host backup

This takes a ton of time on macOS and most of the data is just a local cache anyway
This commit is contained in:
Cameron Gutman 2023-10-01 16:13:22 -05:00
parent aa74e6930b
commit d2dc0aa1b1
3 changed files with 4 additions and 4 deletions

View file

@ -273,7 +273,7 @@ void DelayedFlushThread::run() {
int i = 0;
for (const NvComputer* computer : m_ComputerManager->m_KnownHosts) {
settings.setArrayIndex(i++);
computer->serialize(settings);
computer->serialize(settings, false);
}
}
settings.endArray();
@ -286,7 +286,7 @@ void DelayedFlushThread::run() {
int i = 0;
for (const NvComputer* computer : m_ComputerManager->m_KnownHosts) {
settings.setArrayIndex(i++);
computer->serialize(settings);
computer->serialize(settings, true);
}
}
settings.endArray();

View file

@ -74,7 +74,7 @@ void NvComputer::setRemoteAddress(QHostAddress address)
this->remoteAddress = NvAddress(address, this->externalPort);
}
void NvComputer::serialize(QSettings& settings) const
void NvComputer::serialize(QSettings& settings, bool serializeApps) const
{
QReadLocker lock(&this->lock);

View file

@ -49,7 +49,7 @@ public:
uniqueAddresses() const;
void
serialize(QSettings& settings) const;
serialize(QSettings& settings, bool serializeApps) const;
enum PairState
{