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
|
id: clipboardHistoryModal
|
||||||
|
|
||||||
property bool isVisible: false
|
|
||||||
property int totalCount: 0
|
property int totalCount: 0
|
||||||
property var activeTheme: Theme
|
property var activeTheme: Theme
|
||||||
property bool showClearConfirmation: false
|
property bool showClearConfirmation: false
|
||||||
@@ -39,21 +38,21 @@ DankModal {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function toggle() {
|
function toggle() {
|
||||||
if (isVisible)
|
if (visible)
|
||||||
hide();
|
hide();
|
||||||
else
|
else
|
||||||
show();
|
show();
|
||||||
}
|
}
|
||||||
|
|
||||||
function show() {
|
function show() {
|
||||||
clipboardHistoryModal.isVisible = true;
|
clipboardHistoryModal.visible = true;
|
||||||
initializeThumbnailSystem();
|
initializeThumbnailSystem();
|
||||||
refreshClipboard();
|
refreshClipboard();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function hide() {
|
function hide() {
|
||||||
clipboardHistoryModal.isVisible = false;
|
clipboardHistoryModal.visible = false;
|
||||||
clipboardHistoryModal.searchText = "";
|
clipboardHistoryModal.searchText = "";
|
||||||
cleanupTempFiles();
|
cleanupTempFiles();
|
||||||
}
|
}
|
||||||
@@ -123,7 +122,7 @@ DankModal {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
visible: isVisible
|
visible: false
|
||||||
width: 650
|
width: 650
|
||||||
height: 550
|
height: 550
|
||||||
keyboardFocus: "ondemand"
|
keyboardFocus: "ondemand"
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ Singleton {
|
|||||||
if (!node) continue
|
if (!node) continue
|
||||||
|
|
||||||
if ((node.type & PwNodeType.AudioInStream) === PwNodeType.AudioInStream) {
|
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)) {
|
if (!looksLikeSystemVirtualMic(node)) {
|
||||||
console.log(node.audio)
|
console.log(node.audio)
|
||||||
if (node.audio && node.audio.muted) {
|
if (node.audio && node.audio.muted) {
|
||||||
@@ -43,7 +42,6 @@ Singleton {
|
|||||||
if (!node || !node.ready) continue
|
if (!node || !node.ready) continue
|
||||||
|
|
||||||
if (node.properties && node.properties["media.class"] === "Stream/Input/Video") {
|
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") {
|
if (node.properties["stream.is-live"] === "true") {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user