We must prompt the user before giving them support the first time

This commit is contained in:
Lirusaito
2019-07-26 20:24:09 -04:00
parent 16a6af820a
commit 01b02fd6b1
3 changed files with 25 additions and 3 deletions

View File

@@ -950,9 +950,9 @@ Changing this setting only affects new text.</string>
<key>Persist</key> <key>Persist</key>
<integer>1</integer> <integer>1</integer>
<key>Type</key> <key>Type</key>
<string>Boolean</string> <string>S32</string>
<key>Value</key> <key>Value</key>
<boolean>1</boolean> <boolean>-1</boolean>
</map> </map>
<key>WarnRecommendedUpdate</key> <key>WarnRecommendedUpdate</key>
<map> <map>

View File

@@ -575,8 +575,19 @@ BOOL LLFloaterIMPanel::postBuild()
} }
break; break;
case SUPPORT_SESSION: case SUPPORT_SESSION:
getChildView("Support Check")->setVisible(true); {
auto support = getChildView("Support Check");
support->setVisible(true);
auto control = gSavedSettings.getControl(support->getControlName());
if (control->get().asInteger() == -1)
{
LLNotificationsUtil::add("SupportChatShowInfo", LLSD(), LLSD(), [control](const LLSD& p, const LLSD& f)
{
control->set(!LLNotificationsUtil::getSelectedOption(p, f));
});
}
// Singu Note: We could make a button feature for dumping Help->About contents for support, too. // Singu Note: We could make a button feature for dumping Help->About contents for support, too.
}
break; break;
default: default:
break; break;

View File

@@ -11460,6 +11460,17 @@ Do you wish to export anyway?
Object successfully exported to: [FILENAME] Object successfully exported to: [FILENAME]
</notification> </notification>
<notification
icon="alertmodal.tga"
name="SupportChatShowInfo"
type="alertmodal">
You have just entered a [SHORT_APP_NAME] support group chat. To help provide support, [SHORT_APP_NAME] can prepend useful information to your messages. This can easily be toggled later via the checkbox in the support group chat.
<usetemplate
name="okcancelbuttons"
notext="Don't Bother"
yestext="I Consent!"/>
</notification>
<notification <notification
icon="notifytip.tga" icon="notifytip.tga"
label="Update Available" label="Update Available"