~marcustomlinson/unity-scope-click/without-crashing

« back to all changes in this revision

Viewing changes to libclickscope/click/preview.cpp

  • Committer: CI Train Bot
  • Author(s): Rodney Dawes
  • Date: 2016-03-07 14:10:27 UTC
  • mfrom: (412.1.3 login-payment)
  • Revision ID: ci-train-bot@canonical.com-20160307141027-m4go0dycgmdo858m
Use the online-accounts integration for payments button.
Refresh the store results on purchase cancellation. Fixes: #1513093
Approved by: Charles Kerr

Show diffs side-by-side

added added

removed removed

Lines of Context:
1279
1279
        tuple["download_url"] = details.download_url;
1280
1280
        tuple["download_sha512"] = details.download_sha512;
1281
1281
        payments.add_attribute_value("source", scopes::Variant(tuple));
1282
 
        // NOTE: No need to connect payments button to online-accounts API
1283
 
        // here, as pay-ui will take care of any login needs.
 
1282
        oa_client.register_account_login_item(payments,
 
1283
                                              scopes::OnlineAccountClient::PostLoginAction::ContinueActivation,
 
1284
                                              scopes::OnlineAccountClient::PostLoginAction::DoNothing);
1284
1285
        widgets.push_back(payments);
1285
1286
    } else {
1286
1287
        scopes::PreviewWidget buttons("buttons", "actions");