Set bubble default state off for android.

This commit is contained in:
Gabriel Calero 2018-02-26 13:06:22 -03:00
parent 12d1885dff
commit 7982d8da58
2 changed files with 6 additions and 0 deletions

View file

@ -172,7 +172,11 @@ private:
tbb::concurrent_unordered_map<QUuid, float, UUIDHasher> _avatarGainMap;
void sendIgnoreRadiusStateToNode(const SharedNodePointer& destinationNode);
#if defined(Q_OS_ANDROID)
Setting::Handle<bool> _ignoreRadiusEnabled { "IgnoreRadiusEnabled", false };
#else
Setting::Handle<bool> _ignoreRadiusEnabled { "IgnoreRadiusEnabled", true };
#endif
#if (PR_BUILD || DEV_BUILD)
bool _shouldSendNewerVersion { false };

View file

@ -132,6 +132,8 @@ function setupBottomBar() {
text: "BUBBLE"
});
bubbleBtn.editProperties({isActive: Users.getIgnoreRadiusEnabled()});
bubbleBtn.clicked.connect(function() {
Users.toggleIgnoreRadius();
bubbleBtn.editProperties({isActive: Users.getIgnoreRadiusEnabled()});