opt: combine the file filters as one entry (#2022)
Some checks are pending
SonarCloud / Build and analyze (push) Waiting to run

* opt: combine the file filters as one entry

* Update src/ui/mainwindow.cc

Co-authored-by: shenleban tongying <shenlebantongying@gmail.com>

---------

Co-authored-by: shenleban tongying <shenlebantongying@gmail.com>
This commit is contained in:
xiaoyifang 2024-12-16 17:59:19 +08:00 committed by GitHub
parent 13a50dbb6c
commit e86e99e72c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4025,7 +4025,7 @@ void MainWindow::on_importFavorites_triggered()
QString fileName = QFileDialog::getOpenFileName( this,
tr( "Import Favorites from file" ),
importPath,
tr( "XML files (*.xml);;Txt files (*.txt);;All files (*.*)" ) );
tr( "Text and XML files (*.txt *.xml);;All files (*.*)" ) );
if ( fileName.size() == 0 ) {
return;
}