mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 09:23:17 +02:00
make sure we dont log the initial call to onBubbleToggled
This commit is contained in:
parent
37b738ff8b
commit
4dae77cd9d
1 changed files with 7 additions and 6 deletions
|
@ -140,11 +140,12 @@
|
|||
}
|
||||
|
||||
// When the space bubble is toggled...
|
||||
function onBubbleToggled() {
|
||||
var bubbleActive = Users.getIgnoreRadiusEnabled();
|
||||
writeButtonProperties(bubbleActive);
|
||||
UserActivityLogger.bubbleToggled(bubbleActive);
|
||||
if (bubbleActive) {
|
||||
function onBubbleToggled(enabled, doNotLog) {
|
||||
writeButtonProperties(enabled);
|
||||
if (doNotLog !== true) {
|
||||
UserActivityLogger.bubbleToggled(enabled);
|
||||
}
|
||||
if (enabled) {
|
||||
createOverlays();
|
||||
} else {
|
||||
hideOverlays();
|
||||
|
@ -165,7 +166,7 @@
|
|||
sortOrder: 4
|
||||
});
|
||||
|
||||
onBubbleToggled();
|
||||
onBubbleToggled(Users.getIgnoreRadiusEnabled(), true); // pass in true so we don't log this initial one in the UserActivity table
|
||||
|
||||
button.clicked.connect(Users.toggleIgnoreRadius);
|
||||
Users.ignoreRadiusEnabledChanged.connect(onBubbleToggled);
|
||||
|
|
Loading…
Reference in a new issue