mirror of
https://github.com/tnodir/fort
synced 2024-11-15 11:35:07 +00:00
UI: QuotaManager: Save only changed settings.
This commit is contained in:
parent
169fcaab56
commit
3200ce71fc
@ -131,8 +131,10 @@ void QuotaManager::setQuotaDayAlerted(qint32 v)
|
||||
{
|
||||
m_quotaDayAlerted = v;
|
||||
|
||||
ini()->setQuotaDayAlerted(v);
|
||||
confManager()->saveIni();
|
||||
if (ini()->quotaDayAlerted() != v) {
|
||||
ini()->setQuotaDayAlerted(v);
|
||||
confManager()->saveIni();
|
||||
}
|
||||
}
|
||||
|
||||
qint32 QuotaManager::quotaMonthAlerted() const
|
||||
@ -144,6 +146,8 @@ void QuotaManager::setQuotaMonthAlerted(qint32 v)
|
||||
{
|
||||
m_quotaMonthAlerted = v;
|
||||
|
||||
ini()->setQuotaMonthAlerted(v);
|
||||
confManager()->saveIni();
|
||||
if (ini()->quotaMonthAlerted() != v) {
|
||||
ini()->setQuotaMonthAlerted(v);
|
||||
confManager()->saveIni();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user