Refresh printers when becoming visible
This commit is contained in:
parent
ded0d4a2cb
commit
c270ac5a93
1 changed files with 10 additions and 0 deletions
|
@ -43,6 +43,16 @@ Page {
|
|||
}
|
||||
}
|
||||
|
||||
property bool initialized: false
|
||||
onVisibleChanged: {
|
||||
if (visible)
|
||||
{
|
||||
if(initialized)
|
||||
page.refreshed()
|
||||
initialized = true
|
||||
}
|
||||
}
|
||||
|
||||
signal refreshed()
|
||||
|
||||
Component.onCompleted: {
|
||||
|
|
Loading…
Reference in a new issue