|
|
@ -473,23 +473,30 @@ void UBApplicationController::showTutorial() |
|
|
|
UBApplication::boardController->hide(); |
|
|
|
UBApplication::boardController->hide(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// it's needed not to duplicate webbrowser search in web mode. If I've breaked smbd's code let Ivan know
|
|
|
|
if (UBSettings::settings()->webUseExternalBrowser->get().toBool()) |
|
|
|
UBApplication::webController->show(UBWebController::Tutorial); |
|
|
|
{ |
|
|
|
|
|
|
|
showDesktop(true); |
|
|
|
|
|
|
|
UBApplication::webController->show(UBWebController::Tutorial); |
|
|
|
|
|
|
|
|
|
|
|
mMainWindow->webToolBar->hide(); |
|
|
|
} |
|
|
|
mMainWindow->boardToolBar->hide(); |
|
|
|
else{ |
|
|
|
mMainWindow->documentToolBar->hide(); |
|
|
|
mMainWindow->webToolBar->hide(); |
|
|
|
mMainWindow->tutorialToolBar->show(); |
|
|
|
mMainWindow->boardToolBar->hide(); |
|
|
|
|
|
|
|
mMainWindow->documentToolBar->hide(); |
|
|
|
|
|
|
|
mMainWindow->tutorialToolBar->show(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mMainMode = Tutorial; |
|
|
|
mMainMode = Tutorial; |
|
|
|
|
|
|
|
|
|
|
|
adaptToolBar(); |
|
|
|
adaptToolBar(); |
|
|
|
|
|
|
|
|
|
|
|
mUninoteController->hideWindow(); |
|
|
|
mUninoteController->hideWindow(); |
|
|
|
|
|
|
|
|
|
|
|
mirroringEnabled(false); |
|
|
|
UBApplication::webController->show(UBWebController::Tutorial); |
|
|
|
emit mainModeChanged(mMainMode); |
|
|
|
|
|
|
|
|
|
|
|
mirroringEnabled(false); |
|
|
|
|
|
|
|
emit mainModeChanged(mMainMode); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -539,7 +546,6 @@ void UBApplicationController::updateRequestFinished(int id, bool error) |
|
|
|
} |
|
|
|
} |
|
|
|
else{ |
|
|
|
else{ |
|
|
|
QString responseString = QString(mHttp->readAll()); |
|
|
|
QString responseString = QString(mHttp->readAll()); |
|
|
|
qDebug() << responseString; |
|
|
|
|
|
|
|
if (!responseString.isEmpty() && responseString.contains("version") && responseString.contains("url")){ |
|
|
|
if (!responseString.isEmpty() && responseString.contains("version") && responseString.contains("url")){ |
|
|
|
mHttp->close(); |
|
|
|
mHttp->close(); |
|
|
|
downloadJsonFinished(responseString); |
|
|
|
downloadJsonFinished(responseString); |
|
|
|