mirror of
https://github.com/ONLYOFFICE/desktop-apps.git
synced 2026-04-07 14:09:22 +08:00
[win-nix] changed connection error page path
This commit is contained in:
@ -1054,15 +1054,6 @@ void CAscApplicationManagerWrapper::startApp()
|
||||
_app.m_pMainWindow->show(_is_maximized);
|
||||
}
|
||||
|
||||
if ( QFileInfo::exists(":/noconnect.html") ) {
|
||||
QString _nc_path = Utils::getAppCommonPath() + "/noconnect.html";
|
||||
bool _nc_exist = QFileInfo::exists(_nc_path) || QFile::copy(":/noconnect.html", _nc_path);
|
||||
|
||||
if ( _nc_exist ) {
|
||||
_app.m_oSettings.connection_error_path = _nc_path.toStdWString();
|
||||
}
|
||||
}
|
||||
|
||||
QObject::connect(CExistanceController::getInstance(), &CExistanceController::checked, [] (const QString& name, int uid, bool exists) {
|
||||
if ( !exists ) {
|
||||
QJsonObject _json_obj{{QString::number(uid), exists}};
|
||||
|
||||
@ -98,6 +98,7 @@ int main( int argc, char *argv[] )
|
||||
manager->m_oSettings.local_editors_path = app_path + L"/editors/web-apps/apps/api/documents/index.html";
|
||||
manager->m_oSettings.additional_fonts_folder.push_back(app_path + L"/fonts");
|
||||
manager->m_oSettings.country = Utils::systemLocationCode().toStdString();
|
||||
manager->m_oSettings.connection_error_path = app_path + L"/editors/webext/noconnect.html";
|
||||
};
|
||||
|
||||
if ( InputArgs::contains(L"--version") ) {
|
||||
|
||||
Reference in New Issue
Block a user