~gary-wzl77/scope-aggregator/std

Viewing all changes in revision 160.

  • Committer: Kyle Nitzsche
  • Date: 2016-03-03 16:20:10 UTC
  • mfrom: (158.1.2 hints-using-data)
  • Revision ID: kyle.nitzsche@canonical.com-20160303162010-xpszljtnfu1ziwh0
Tags: 4.4
Merge that works withi/requires 1.0 version of hints scope as follows:

Previously when hints quickstart displayed and user tapped "Skip" button
the hints scope set the uri on the Skip button result like so:
scope://com.canonical.scopes.dashboard_dashbiard?q=start

The result was that the "start" string displayed in the agg scope search
box, which is not great.  

The agg scope looked for an incoming query string of "start" and if found
it treated it as signal to dismiss hints quick start (by writing a file
to cache dir, a file that is checked on every refresh).

This merge changes the expectation of the agg scope as follows:

The signal to dismiss hints now takes the form of user_data of 
"hide_quickstart" in the incoming uri, for example:
        std::string data = query().user_data().get_string();
        if (data == "hide_quickstart")
        ... then write the file to dismiss hints.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: