mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-26 15:32:08 +00:00
chore: refactor settings
This commit is contained in:
@@ -118,8 +118,8 @@ void SendProgressManager::send(const Key &key, int progress) {
|
||||
}
|
||||
|
||||
// AyuGram sendUploadProgress
|
||||
const auto settings = &AyuSettings::getInstance();
|
||||
if (!settings->sendUploadProgress)
|
||||
const auto& settings = AyuSettings::getInstance();
|
||||
if (!settings.sendUploadProgress)
|
||||
{
|
||||
DEBUG_LOG(("[AyuGram] Don't send upload progress"));
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user