mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-11-26 04:33:06 +01:00
Add qml mute before destroy
This commit is contained in:
parent
2e89fda91f
commit
a2f6c82ee0
@ -7,6 +7,13 @@ Rectangle {
|
||||
|
||||
Connections {
|
||||
target: mainwindow
|
||||
|
||||
onQmlExit:{
|
||||
webView.runJavaScript(
|
||||
"var videoPlayer = document.getElementById('videoPlayer'); videoPlayer.volume = 0;")
|
||||
mainwindow.destroyThis()
|
||||
}
|
||||
|
||||
onFillModeChanged: {
|
||||
//TODO
|
||||
}
|
||||
|
@ -104,7 +104,7 @@ MainWindow::MainWindow(int i, QString projectPath, QString id, QString decoder,
|
||||
}
|
||||
|
||||
//Hide first to avoid flickering
|
||||
ShowWindow(m_worker_hwnd, SW_HIDE);
|
||||
//ShowWindow(m_worker_hwnd, SW_HIDE);
|
||||
ShowWindow(m_hwnd, SW_HIDE);
|
||||
MoveWindow(m_hwnd, screen->geometry().x() + offsetX, screen->geometry().y() + offsetY, screen->size().width(), screen->size().height(), true);
|
||||
SetParent(m_hwnd, m_worker_hwnd);
|
||||
@ -139,7 +139,7 @@ void MainWindow::init()
|
||||
#ifdef Q_OS_WIN
|
||||
// This needs to be set in this order or
|
||||
// the window will be opened as fullscreen!
|
||||
ShowWindow(m_worker_hwnd, SW_SHOWDEFAULT);
|
||||
//ShowWindow(m_worker_hwnd, SW_SHOWDEFAULT);
|
||||
ShowWindow(m_hwnd, SW_SHOWDEFAULT);
|
||||
#endif
|
||||
}
|
||||
|
@ -225,6 +225,7 @@ signals:
|
||||
void playbackRateChanged(float playbackRate);
|
||||
void qmlSceneValueReceived(QString key, QString value);
|
||||
void decoderChanged(QString decoder);
|
||||
void qmlExit();
|
||||
|
||||
private:
|
||||
#ifdef Q_OS_WIN
|
||||
|
Loading…
Reference in New Issue
Block a user