mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-08 06:32:35 +02:00
Bugfixes per QA
This commit is contained in:
parent
ee9519bf1b
commit
02aa8ac566
3 changed files with 27 additions and 14 deletions
|
@ -1121,7 +1121,7 @@ Item {
|
|||
anchors.topMargin: 16;
|
||||
anchors.left: parent.left;
|
||||
anchors.leftMargin: 20;
|
||||
width: 110;
|
||||
width: 130;
|
||||
boxSize: 28;
|
||||
onCheckedChanged: {
|
||||
Settings.setValue("sendAssetsNearbyPublicly", checked);
|
||||
|
@ -1133,7 +1133,6 @@ Item {
|
|||
text: "[?]";
|
||||
// Anchors
|
||||
anchors.left: sendPubliclyCheckbox.right;
|
||||
anchors.leftMargin: 8;
|
||||
anchors.verticalCenter: sendPubliclyCheckbox.verticalCenter;
|
||||
height: 30;
|
||||
width: paintedWidth;
|
||||
|
|
|
@ -792,6 +792,7 @@ Rectangle {
|
|||
|
||||
HifiControlsUit.Keyboard {
|
||||
id: keyboard;
|
||||
z: 999;
|
||||
raised: HMD.mounted && parent.keyboardRaised;
|
||||
numeric: parent.punctuationMode;
|
||||
anchors {
|
||||
|
|
|
@ -1013,21 +1013,33 @@ var selectionDisplay = null; // for gridTool.js to ignore
|
|||
});
|
||||
break;
|
||||
case 'refreshConnections':
|
||||
print('Refreshing Connections...');
|
||||
getConnectionData(false);
|
||||
// Guard to prevent this code from being executed while sending money --
|
||||
// we only want to execute this while sending non-HFC gifts
|
||||
if (!onWalletScreen) {
|
||||
print('Refreshing Connections...');
|
||||
getConnectionData(false);
|
||||
}
|
||||
break;
|
||||
case 'enable_ChooseRecipientNearbyMode':
|
||||
if (!isUpdateOverlaysWired) {
|
||||
Script.update.connect(updateOverlays);
|
||||
isUpdateOverlaysWired = true;
|
||||
// Guard to prevent this code from being executed while sending money --
|
||||
// we only want to execute this while sending non-HFC gifts
|
||||
if (!onWalletScreen) {
|
||||
if (!isUpdateOverlaysWired) {
|
||||
Script.update.connect(updateOverlays);
|
||||
isUpdateOverlaysWired = true;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 'disable_ChooseRecipientNearbyMode':
|
||||
if (isUpdateOverlaysWired) {
|
||||
Script.update.disconnect(updateOverlays);
|
||||
isUpdateOverlaysWired = false;
|
||||
// Guard to prevent this code from being executed while sending money --
|
||||
// we only want to execute this while sending non-HFC gifts
|
||||
if (!onWalletScreen) {
|
||||
if (isUpdateOverlaysWired) {
|
||||
Script.update.disconnect(updateOverlays);
|
||||
isUpdateOverlaysWired = false;
|
||||
}
|
||||
removeOverlays();
|
||||
}
|
||||
removeOverlays();
|
||||
break;
|
||||
case 'wallet_availableUpdatesReceived':
|
||||
case 'purchases_availableUpdatesReceived':
|
||||
|
@ -1191,18 +1203,19 @@ var selectionDisplay = null; // for gridTool.js to ignore
|
|||
var isWired = false;
|
||||
var isUpdateOverlaysWired = false;
|
||||
function off() {
|
||||
if (isWired) { // It is not ok to disconnect these twice, hence guard.
|
||||
if (isWired) {
|
||||
Users.usernameFromIDReply.disconnect(usernameFromIDReply);
|
||||
Controller.mousePressEvent.disconnect(handleMouseEvent);
|
||||
Controller.mouseMoveEvent.disconnect(handleMouseMoveEvent);
|
||||
triggerMapping.disable();
|
||||
triggerPressMapping.disable();
|
||||
|
||||
isWired = false;
|
||||
}
|
||||
if (isUpdateOverlaysWired) {
|
||||
Script.update.disconnect(updateOverlays);
|
||||
isUpdateOverlaysWired = false;
|
||||
}
|
||||
triggerMapping.disable(); // It's ok if we disable twice.
|
||||
triggerPressMapping.disable(); // see above
|
||||
removeOverlays();
|
||||
}
|
||||
function shutdown() {
|
||||
|
|
Loading…
Reference in a new issue