починил нейроконструктор, исправил распознавание сообщений из чата
This commit is contained in:
@@ -162,22 +162,4 @@ QString FileManager::getWebPath(FileType type, const QString& fileName) const
|
||||
return QString("/%1/%2").arg(folder).arg(fileName);
|
||||
}
|
||||
|
||||
void FileManager::copyDefaultFiles()
|
||||
{
|
||||
// Копируем системные стили в пользовательскую папку при первом запуске
|
||||
QString systemStylesPath = getPath(SystemStyles);
|
||||
QDir systemStylesDir(systemStylesPath);
|
||||
|
||||
if (systemStylesDir.exists()) {
|
||||
QStringList qssFiles = systemStylesDir.entryList(QStringList() << "*.qss" << "*.QSS", QDir::Files);
|
||||
|
||||
for (const QString& file : qssFiles) {
|
||||
QString sourcePath = systemStylesDir.absoluteFilePath(file);
|
||||
QString destPath = getFullPath(Styles, file);
|
||||
|
||||
if (!QFile::exists(destPath)) {
|
||||
QFile::copy(sourcePath, destPath);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user