Change default to "No SI sounds" (Issue #2)

This commit is contained in:
ONBcode 2024-04-12 14:05:24 -03:00
parent 3e6433d4dd
commit f7c36a56d4
2 changed files with 3 additions and 2 deletions

View File

@ -2214,7 +2214,7 @@ bool TabSI::loadPage(gdioutput& gdi) {
readoutFunctionY = gdi.getCY(); readoutFunctionY = gdi.getCY();
gdi.dropLine(0.3); gdi.dropLine(0.3);
gdi.addCheckbox("PlaySound", "Ljud", SportIdentCB, oe->getPropertyInt("PlaySound", 1) != 0, gdi.addCheckbox("PlaySound", "Ljud", SportIdentCB, oe->getPropertyInt("PlaySound", 0) != 0,
"Spela upp ett ljud för att indikera resultatet av brickavläsningen."); "Spela upp ett ljud för att indikera resultatet av brickavläsningen.");
gdi.dropLine(-0.3); gdi.dropLine(-0.3);
@ -5076,7 +5076,7 @@ bool TabSI::showDatabase() const {
} }
void TabSI::playReadoutSound(SND type) { void TabSI::playReadoutSound(SND type) {
if (!oe->getPropertyInt("PlaySound", 1)) if (!oe->getPropertyInt("PlaySound", 0))
return; return;
int res = -1; int res = -1;
wstring fn; wstring fn;

View File

@ -461,6 +461,7 @@ void oEvent::initProperties() {
getPropertyInt("UseEventorUTC", 0); getPropertyInt("UseEventorUTC", 0);
getPropertyInt("UseHourFormat", 1); getPropertyInt("UseHourFormat", 1);
getPropertyInt("NameMode", LastFirst); getPropertyInt("NameMode", LastFirst);
getPropertyInt("PlaySound", 0);
} }
void oEvent::listProperties(bool userProps, vector< pair<string, PropertyType> > &propNames) const { void oEvent::listProperties(bool userProps, vector< pair<string, PropertyType> > &propNames) const {