RibbonWindow: Improve console output.
This commit is contained in:
parent
6490a40faf
commit
cba90e9ecf
|
@ -191,12 +191,12 @@ Window {
|
||||||
if (window.status !== Component.Ready) {
|
if (window.status !== Component.Ready) {
|
||||||
window.onStatusChanged = function(status) {
|
window.onStatusChanged = function(status) {
|
||||||
if (status === Component.Ready) {
|
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)
|
dealWithWindows(component, window, sub_windows, window_url)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} 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)
|
dealWithWindows(component, window, sub_windows, window_url)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -243,7 +243,7 @@ Window {
|
||||||
if(component.status !== Component.Ready){
|
if(component.status !== Component.Ready){
|
||||||
component.statusChanged.connect(function(){
|
component.statusChanged.connect(function(){
|
||||||
if (component.status === Component.Ready) {
|
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)
|
internal.configWindowAsynchronous(component, args, sub_windows, window_url)
|
||||||
} else if (component.status === Component.Error) {
|
} else if (component.status === Component.Error) {
|
||||||
console.error("RibbonWindow: Error loading Window Component:", component.errorString())
|
console.error("RibbonWindow: Error loading Window Component:", component.errorString())
|
||||||
|
@ -251,7 +251,7 @@ Window {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
console.debug("Component", component, "is ready immediately.");
|
console.debug("RibbonWindow:", "Component", component, "is ready immediately.")
|
||||||
internal.configWindowAsynchronous(component, args, sub_windows, window_url)
|
internal.configWindowAsynchronous(component, args, sub_windows, window_url)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -181,7 +181,7 @@ Window {
|
||||||
let sub_windows = RibbonUI.windowsSet
|
let sub_windows = RibbonUI.windowsSet
|
||||||
delete sub_windows[window_url]
|
delete sub_windows[window_url]
|
||||||
RibbonUI.windowsSet = sub_windows
|
RibbonUI.windowsSet = sub_windows
|
||||||
});
|
})
|
||||||
window.raise()
|
window.raise()
|
||||||
window.requestActivate()
|
window.requestActivate()
|
||||||
}
|
}
|
||||||
|
@ -191,12 +191,12 @@ Window {
|
||||||
if (window.status !== Component.Ready) {
|
if (window.status !== Component.Ready) {
|
||||||
window.onStatusChanged = function(status) {
|
window.onStatusChanged = function(status) {
|
||||||
if (status === Component.Ready) {
|
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)
|
dealWithWindows(component, window, sub_windows, window_url)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} 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)
|
dealWithWindows(component, window, sub_windows, window_url)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -243,7 +243,7 @@ Window {
|
||||||
if(component.status !== Component.Ready){
|
if(component.status !== Component.Ready){
|
||||||
component.statusChanged.connect(function(){
|
component.statusChanged.connect(function(){
|
||||||
if (component.status === Component.Ready) {
|
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)
|
internal.configWindowAsynchronous(component, args, sub_windows, window_url)
|
||||||
} else if (component.status === Component.Error) {
|
} else if (component.status === Component.Error) {
|
||||||
console.error("RibbonWindow: Error loading Window Component:", component.errorString())
|
console.error("RibbonWindow: Error loading Window Component:", component.errorString())
|
||||||
|
@ -251,7 +251,7 @@ Window {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
console.debug("Component", component, "is ready immediately.");
|
console.debug("RibbonWindow:", "Component", component, "is ready immediately.")
|
||||||
internal.configWindowAsynchronous(component, args, sub_windows, window_url)
|
internal.configWindowAsynchronous(component, args, sub_windows, window_url)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue