~aacid/unity8/fixLauncherUpDownKeys

« back to all changes in this revision

Viewing changes to qml/Launcher/LauncherPanel.qml

  • Committer: Albert Astals Cid
  • Date: 2017-04-04 14:17:29 UTC
  • Revision ID: albert.astals@canonical.com-20170404141729-ehvmf8mtty5xg4ib
Hide quicklist when launcher index changes

While at it fix a few verify calls that wanted to be compare

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
        }
50
50
    }
51
51
 
 
52
    onHighlightIndexChanged: quickList.state = ""
 
53
 
52
54
    function highlightNext() {
53
55
        highlightIndex++;
54
56
        if (highlightIndex >= launcherListView.count) {
799
801
            item = launcherListView.itemAt(launcherListView.width / 2, itemPosition + launcherListView.itemHeight / 2);
800
802
            quickList.model = launcherListView.model.get(index).quickList;
801
803
            quickList.appId = launcherListView.model.get(index).appId;
 
804
            root.highlightIndex = index;
802
805
            quickList.state = "open";
803
 
            root.highlightIndex = index;
804
806
            quickList.forceActiveFocus();
805
807
        }
806
808