Port ActiveCallBar to Qml
This commit is contained in:
parent
9169a26e67
commit
da27670cbe
16 changed files with 212 additions and 277 deletions
|
|
@ -288,7 +288,7 @@ MainWindow::showChatPage()
|
|||
void
|
||||
MainWindow::closeEvent(QCloseEvent *event)
|
||||
{
|
||||
if (WebRTCSession::instance().state() != WebRTCSession::State::DISCONNECTED) {
|
||||
if (WebRTCSession::instance().state() != webrtc::State::DISCONNECTED) {
|
||||
if (QMessageBox::question(this, "nheko", "A call is in progress. Quit?") !=
|
||||
QMessageBox::Yes) {
|
||||
event->ignore();
|
||||
|
|
@ -440,7 +440,7 @@ MainWindow::openLogoutDialog()
|
|||
{
|
||||
auto dialog = new dialogs::Logout(this);
|
||||
connect(dialog, &dialogs::Logout::loggingOut, this, [this]() {
|
||||
if (WebRTCSession::instance().state() != WebRTCSession::State::DISCONNECTED) {
|
||||
if (WebRTCSession::instance().state() != webrtc::State::DISCONNECTED) {
|
||||
if (QMessageBox::question(
|
||||
this, "nheko", "A call is in progress. Log out?") !=
|
||||
QMessageBox::Yes) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue