Skip to content

Commit 40d050c

Browse files
pppanghu77deepin-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 ac46223 commit 40d050c

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
@@ -2118,6 +2118,10 @@ void MainWindow::showErrorMessage(FailureInfo fFailureInfo, ErrorInfo eErrorInfo
21182118
m_pFailurePage->setFailureDetail(tr("No compression support in current directory. Download the files to a local device."));
21192119
}
21202120
break;
2121+
case EI_LongFileName: {
2122+
m_pFailurePage->setFailureDetail(tr("The file name is too long. Keep the name within 60 characters please."));
2123+
}
2124+
break;
21212125
default:
21222126
break;
21232127
}

0 commit comments

Comments
 (0)