mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-06-10 05:03:28 -04:00
fix(clipboard): exit saved filter when pinned entries are empty (#2604)
This commit is contained in:
@@ -36,9 +36,18 @@ FocusScope {
|
||||
signal instantCloseRequested
|
||||
|
||||
onActiveTabChanged: {
|
||||
if (activeTab === "saved" && pinnedCount === 0) {
|
||||
activeTab = "recents";
|
||||
return;
|
||||
}
|
||||
ClipboardService.selectedIndex = 0;
|
||||
ClipboardService.keyboardNavigationActive = false;
|
||||
}
|
||||
onPinnedCountChanged: {
|
||||
if (activeTab === "saved" && pinnedCount === 0) {
|
||||
activeTab = "recents";
|
||||
}
|
||||
}
|
||||
onSearchTextChanged: ClipboardService.searchText = searchText
|
||||
|
||||
function hide() {
|
||||
|
||||
Reference in New Issue
Block a user