mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2025-12-09 23:15:38 -05:00
fix clipboard hist modal
This commit is contained in:
@@ -11,7 +11,6 @@ DankModal {
|
||||
|
||||
id: clipboardHistoryModal
|
||||
|
||||
property bool isVisible: false
|
||||
property int totalCount: 0
|
||||
property var activeTheme: Theme
|
||||
property bool showClearConfirmation: false
|
||||
@@ -39,21 +38,21 @@ DankModal {
|
||||
}
|
||||
|
||||
function toggle() {
|
||||
if (isVisible)
|
||||
if (visible)
|
||||
hide();
|
||||
else
|
||||
show();
|
||||
}
|
||||
|
||||
function show() {
|
||||
clipboardHistoryModal.isVisible = true;
|
||||
clipboardHistoryModal.visible = true;
|
||||
initializeThumbnailSystem();
|
||||
refreshClipboard();
|
||||
|
||||
}
|
||||
|
||||
function hide() {
|
||||
clipboardHistoryModal.isVisible = false;
|
||||
clipboardHistoryModal.visible = false;
|
||||
clipboardHistoryModal.searchText = "";
|
||||
cleanupTempFiles();
|
||||
}
|
||||
@@ -123,7 +122,7 @@ DankModal {
|
||||
}
|
||||
|
||||
|
||||
visible: isVisible
|
||||
visible: false
|
||||
width: 650
|
||||
height: 550
|
||||
keyboardFocus: "ondemand"
|
||||
|
||||
@@ -17,7 +17,6 @@ Singleton {
|
||||
if (!node) continue
|
||||
|
||||
if ((node.type & PwNodeType.AudioInStream) === PwNodeType.AudioInStream) {
|
||||
console.log("Found AudioInStream:", node.name, "media.class:", node.properties?.["media.class"], "stream.is-live:", node.properties?.["stream.is-live"])
|
||||
if (!looksLikeSystemVirtualMic(node)) {
|
||||
console.log(node.audio)
|
||||
if (node.audio && node.audio.muted) {
|
||||
@@ -43,7 +42,6 @@ Singleton {
|
||||
if (!node || !node.ready) continue
|
||||
|
||||
if (node.properties && node.properties["media.class"] === "Stream/Input/Video") {
|
||||
console.log("Found Stream/Input/Video:", node.name, "stream.is-live:", node.properties["stream.is-live"])
|
||||
if (node.properties["stream.is-live"] === "true") {
|
||||
return true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user