diff options
author | 2022-03-30 14:22:21 +0530 | |
---|---|---|
committer | 2022-03-30 14:22:21 +0530 | |
commit | 5be4cae996d0411f4ab50af66d95452bf3a6022e (patch) | |
tree | 685c1277482d2123db2856e4a2a4ef9aa7ce03d2 /src/mainwindow.cpp | |
parent | f2b06da655529c16f12784a897078ccf42f6e90a (diff) | |
download | whatsie-5be4cae996d0411f4ab50af66d95452bf3a6022e.tar.gz whatsie-5be4cae996d0411f4ab50af66d95452bf3a6022e.zip |
chore: unify passowrd echomode in lock widget
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r-- | src/mainwindow.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 1893448..74f196c 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -129,10 +129,8 @@ void MainWindow::loadAppWithArgument(const QString &arg) { // chat composer if (arg.contains("send?") || arg.contains("send/?")) { QString newArg = arg; - qWarning() << "New chat composer"; newArg = newArg.replace("?", "&"); QUrlQuery query(newArg); - qWarning() << query.hasQueryItem("phone"); QString phone, phoneStr, text, textStr, urlStr; // create send url equivalent phone = query.queryItemValue("phone"); @@ -140,7 +138,6 @@ void MainWindow::loadAppWithArgument(const QString &arg) { phoneStr = phone.isEmpty() ? "" : "phone=" + phone; textStr = text.isEmpty() ? "" : "text=" + text; urlStr = "https://web.whatsapp.com/send?" + phoneStr + "&" + textStr; - qWarning() << "Loading" << urlStr; this->webEngine->page()->load(QUrl(urlStr)); return; } @@ -872,7 +869,7 @@ void MainWindow::checkLoadedCorrectly() { "document.querySelector('body').className", [this](const QVariant &result) { if (result.toString().contains("page-version", Qt::CaseInsensitive)) { - qWarning() << "Test 1 found" << result.toString(); + qDebug() << "Test 1 found" << result.toString(); webEngine->page()->runJavaScript( "document.getElementsByTagName('body')[0].innerText = ''"); loadingQuirk("test1"); @@ -890,7 +887,7 @@ void MainWindow::checkLoadedCorrectly() { quitAction->trigger(); } else { - qWarning() << "Test 1 loaded correctly value:" << result.toString(); + qDebug() << "Test 1 loaded correctly, value:" << result.toString(); } }); } |