mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2025-07-01 23:35:55 +00:00
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:
parent
aa74e6930b
commit
d2dc0aa1b1
@ -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();
|
||||
|
@ -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);
|
||||
|
||||
|
@ -49,7 +49,7 @@ public:
|
||||
uniqueAddresses() const;
|
||||
|
||||
void
|
||||
serialize(QSettings& settings) const;
|
||||
serialize(QSettings& settings, bool serializeApps) const;
|
||||
|
||||
enum PairState
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user