mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
fix: always open to "recent" tab
This commit is contained in:
@@ -50,6 +50,11 @@ Item {
|
||||
}
|
||||
}
|
||||
|
||||
function onOpened() {
|
||||
// Always reset to "recent" category when opening
|
||||
selectedCategory = "recent";
|
||||
}
|
||||
|
||||
// Check if this plugin handles the command
|
||||
function handleCommand(searchText) {
|
||||
return searchText.startsWith(">emoji");
|
||||
|
||||
@@ -103,9 +103,8 @@ Singleton {
|
||||
return [];
|
||||
}
|
||||
|
||||
// Special case: "recent" category shows popular/recently used
|
||||
if (category === "recent") {
|
||||
return _getPopularEmojis(50);
|
||||
return _getPopularEmojis(25);
|
||||
}
|
||||
|
||||
return emojis.filter(function(emoji) {
|
||||
|
||||
Reference in New Issue
Block a user