kopia lustrzana https://gitlab.com/gridtracker.org/gridtracker
Merge branch 'chrbayer84.oams-pop-up-default' into 'master'
reset default behavior for oams to pop up on new release See merge request gridtracker.org/gridtracker!95rich-presence
commit
d45dab3a1f
|
@ -183,7 +183,7 @@ var def_msgSettings = {
|
|||
msgAlertWord: "New chat message",
|
||||
msgAlertMedia: "none",
|
||||
msgFrequencySelect: 0,
|
||||
msgActionSelect: 0,
|
||||
msgActionSelect: 1,
|
||||
msgAwaySelect: 0,
|
||||
msgAwayText: "I am away from the shack at the moment"
|
||||
};
|
||||
|
|
|
@ -117,6 +117,14 @@ function loadAllSettings()
|
|||
def_adifLogSettings
|
||||
);
|
||||
g_msgSettings = loadDefaultsAndMerge("msgSettings", def_msgSettings);
|
||||
// one-time override of oams pop-up messages: if pop-ups disabled
|
||||
// and new version, reset msgActionSelect to 1 (pop up)
|
||||
if (g_msgSettings.msgActionSelect == 0 &&
|
||||
String(gtVersion) != String(g_startVersion))
|
||||
{
|
||||
g_msgSettings.msgActionSelect = 1;
|
||||
localStorage.msgSettings = JSON.stringify(g_msgSettings);
|
||||
}
|
||||
g_receptionSettings = loadDefaultsAndMerge(
|
||||
"receptionSettings",
|
||||
def_receptionSettings
|
||||
|
|
Ładowanie…
Reference in New Issue