From cba90e9ecfd382ded238f64c7126639bf4c08722 Mon Sep 17 00:00:00 2001 From: Mentalflow <312902918@qq.com> Date: Thu, 22 May 2025 00:05:41 +0800 Subject: [PATCH] RibbonWindow: Improve console output. --- lib_source/qml/Qt5/RibbonWindow.qml | 8 ++++---- lib_source/qml/Qt6/RibbonWindow.qml | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/lib_source/qml/Qt5/RibbonWindow.qml b/lib_source/qml/Qt5/RibbonWindow.qml index 6a5e2be..6cb2517 100644 --- a/lib_source/qml/Qt5/RibbonWindow.qml +++ b/lib_source/qml/Qt5/RibbonWindow.qml @@ -191,12 +191,12 @@ Window { if (window.status !== Component.Ready) { window.onStatusChanged = function(status) { if (status === Component.Ready) { - console.debug("Object", window.object, "is now ready."); + console.debug("RibbonWindow:", "Object", window.object, "is now ready.") dealWithWindows(component, window, sub_windows, window_url) } } } else { - console.debug("Object", window.object, "is ready immediately."); + console.debug("RibbonWindow:", "Object", window.object, "is ready immediately.") dealWithWindows(component, window, sub_windows, window_url) } } @@ -243,7 +243,7 @@ Window { if(component.status !== Component.Ready){ component.statusChanged.connect(function(){ if (component.status === Component.Ready) { - console.debug("Component", component, "is now ready."); + console.debug("RibbonWindow:", "Component", component, "is now ready.") internal.configWindowAsynchronous(component, args, sub_windows, window_url) } else if (component.status === Component.Error) { console.error("RibbonWindow: Error loading Window Component:", component.errorString()) @@ -251,7 +251,7 @@ Window { }) } else{ - console.debug("Component", component, "is ready immediately."); + console.debug("RibbonWindow:", "Component", component, "is ready immediately.") internal.configWindowAsynchronous(component, args, sub_windows, window_url) } } diff --git a/lib_source/qml/Qt6/RibbonWindow.qml b/lib_source/qml/Qt6/RibbonWindow.qml index ccc0b73..f0caec4 100644 --- a/lib_source/qml/Qt6/RibbonWindow.qml +++ b/lib_source/qml/Qt6/RibbonWindow.qml @@ -181,7 +181,7 @@ Window { let sub_windows = RibbonUI.windowsSet delete sub_windows[window_url] RibbonUI.windowsSet = sub_windows - }); + }) window.raise() window.requestActivate() } @@ -191,12 +191,12 @@ Window { if (window.status !== Component.Ready) { window.onStatusChanged = function(status) { if (status === Component.Ready) { - console.debug("Object", window.object, "is now ready."); + console.debug("RibbonWindow:", "Object", window.object, "is now ready.") dealWithWindows(component, window, sub_windows, window_url) } } } else { - console.debug("Object", window.object, "is ready immediately."); + console.debug("RibbonWindow:", "Object", window.object, "is ready immediately.") dealWithWindows(component, window, sub_windows, window_url) } } @@ -243,7 +243,7 @@ Window { if(component.status !== Component.Ready){ component.statusChanged.connect(function(){ if (component.status === Component.Ready) { - console.debug("Component", component, "is now ready."); + console.debug("RibbonWindow:", "Component", component, "is now ready.") internal.configWindowAsynchronous(component, args, sub_windows, window_url) } else if (component.status === Component.Error) { console.error("RibbonWindow: Error loading Window Component:", component.errorString()) @@ -251,7 +251,7 @@ Window { }) } else{ - console.debug("Component", component, "is ready immediately."); + console.debug("RibbonWindow:", "Component", component, "is ready immediately.") internal.configWindowAsynchronous(component, args, sub_windows, window_url) } }