Skip to content

Commit c5fe5dc

Browse files
GongHeng2017deepin-bot[bot]
authored andcommitted
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
1 parent 8b23e43 commit c5fe5dc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/source/mainwindow.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2333,6 +2333,10 @@ void MainWindow::showErrorMessage(FailureInfo fFailureInfo, ErrorInfo eErrorInfo
23332333
m_pFailurePage->setFailureDetail(tr("No compression support in current directory. Download the files to a local device."));
23342334
}
23352335
break;
2336+
case EI_LongFileName: {
2337+
m_pFailurePage->setFailureDetail(tr("The file name is too long. Keep the name within 60 characters please."));
2338+
}
2339+
break;
23362340
default:
23372341
break;
23382342
}

0 commit comments

Comments
 (0)