mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-08-03 01:15:41 -07:00
don't call QAudioOutput constructor unless sound is enabled
This commit is contained in:
@@ -191,6 +191,7 @@ void SettingsCache::setSoundEnabled(int _soundEnabled)
|
||||
{
|
||||
soundEnabled = _soundEnabled;
|
||||
settings->setValue("sound/enabled", soundEnabled);
|
||||
emit soundEnabledChanged();
|
||||
}
|
||||
|
||||
void SettingsCache::setSoundPath(const QString &_soundPath)
|
||||
|
||||
Reference in New Issue
Block a user