mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2025-01-09 01:38:44 +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
3 changed files with 4 additions and 4 deletions
|
@ -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…
Reference in a new issue