From 69223a6491774a9ad6771fdffc0a5cd25987e09e Mon Sep 17 00:00:00 2001 From: gongheng Date: Thu, 20 Nov 2025 21:29:09 +0800 Subject: [PATCH] Fix: Add error handling for long file names in MainWindow -- Implemented a new error message for cases where the file name exceeds the character limit, providing user guidance to keep names within 60 characters. This enhancement improves user experience by clearly communicating file name restrictions. Log: Add error handling for long file names in MainWindow Bug: https://pms.uniontech.com/bug-view-326405.html --- src/source/mainwindow.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/source/mainwindow.cpp b/src/source/mainwindow.cpp index dbb907bf..0f41d59f 100644 --- a/src/source/mainwindow.cpp +++ b/src/source/mainwindow.cpp @@ -2333,6 +2333,10 @@ void MainWindow::showErrorMessage(FailureInfo fFailureInfo, ErrorInfo eErrorInfo m_pFailurePage->setFailureDetail(tr("No compression support in current directory. Download the files to a local device.")); } break; + case EI_LongFileName: { + m_pFailurePage->setFailureDetail(tr("The file name is too long. Keep the name within 60 characters please.")); + } + break; default: break; }