mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-31 17:02:51 -05:00
clipboard: react to changes
This commit is contained in:
@@ -284,6 +284,20 @@ DankModal {
|
||||
modal: clipboardHistoryModal
|
||||
}
|
||||
|
||||
Connections {
|
||||
target: DMSService
|
||||
function onClipboardStateUpdate(data) {
|
||||
if (!clipboardHistoryModal.shouldBeVisible) {
|
||||
return;
|
||||
}
|
||||
const newHistory = data.history || [];
|
||||
internalEntries = newHistory;
|
||||
pinnedEntries = newHistory.filter(e => e.pinned);
|
||||
pinnedCount = pinnedEntries.length;
|
||||
updateFilteredModel();
|
||||
}
|
||||
}
|
||||
|
||||
ConfirmModal {
|
||||
id: clearConfirmDialog
|
||||
confirmButtonText: I18n.tr("Clear All")
|
||||
|
||||
Reference in New Issue
Block a user