making the window close and stop audio properly
This commit is contained in:
parent
9a180f7df0
commit
9f9026105f
3 changed files with 20 additions and 14 deletions
|
@ -97,10 +97,8 @@ Controls.Page {
|
|||
}
|
||||
}
|
||||
|
||||
Loader {
|
||||
id: presentLoader
|
||||
active: presenting
|
||||
source: "PresentationWindow.qml"
|
||||
Presenter.PresentationWindow {
|
||||
id: pWindow
|
||||
}
|
||||
|
||||
SongSqlModel {
|
||||
|
@ -186,8 +184,11 @@ Controls.Page {
|
|||
|
||||
function present(present) {
|
||||
if (present)
|
||||
presentationWindow.showFullScreen();
|
||||
{
|
||||
presentation.loadVideo();
|
||||
pWindow.showFullScreen();
|
||||
}
|
||||
else
|
||||
presentationWindow.close();
|
||||
pWindow.close();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue