[gnome-characters/bilelmoussaoui/gtk4: 21/76] set the correct list type when a sidebar item is selected




commit 0bd5b3297ed766675092b89ab7e84f94863e632e
Author: Bilal Elmoussaoui <bil elmoussaoui gmail com>
Date:   Sat Nov 20 17:19:52 2021 +0100

    set the correct list type when a sidebar item is selected

 src/categoryList.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/categoryList.js b/src/categoryList.js
index 8f38720..12ba4cd 100644
--- a/src/categoryList.js
+++ b/src/categoryList.js
@@ -392,7 +392,7 @@ var CategoryListView = GObject.registerClass({
         this._recentCategoryList.list.connect('row-selected', (list, row) => {
             this._letterCategoryList.unselect();
             this._emojiCategoryList.unselect();
-            this._lastSelectedList = list;
+            this._lastSelectedList = this._recentCategoryList;
             list.select_row(row);
         });
         this.append(this._recentCategoryList)
@@ -413,7 +413,7 @@ var CategoryListView = GObject.registerClass({
         this._emojiCategoryList.list.connect('row-selected', (list, row) => {
             this._letterCategoryList.unselect();
             this._recentCategoryList.unselect();
-            this._lastSelectedList = list;
+            this._lastSelectedList = this._emojiCategoryList;
             list.select_row(row);
         });
         this.append(this._emojiCategoryList);
@@ -433,7 +433,7 @@ var CategoryListView = GObject.registerClass({
         this._letterCategoryList.list.connect('row-selected', (list, row) => {
             this._emojiCategoryList.unselect();
             this._recentCategoryList.unselect();
-            this._lastSelectedList = list;
+            this._lastSelectedList = this._letterCategoryList;
             list.select_row(row);
         });
         this.append(this._letterCategoryList);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]