2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Play notification sound using Media::Audio::Track.

This commit is contained in:
John Preston
2017-05-03 16:01:15 +03:00
parent 6f89d01452
commit 2e816f2a67
22 changed files with 169 additions and 293 deletions

View File

@@ -2432,12 +2432,6 @@ namespace {
return i.value();
}
void playSound() {
if (Global::SoundNotify() && !Platform::Notifications::SkipAudio()) {
Media::Audio::PlayNotify();
}
}
void checkImageCacheSize() {
int64 nowImageCacheSize = imageCacheSize();
if (nowImageCacheSize > serviceImageCacheSize + MemoryForImageCache) {