Skip to content

Commit

Permalink
https://github.com/StephaneCouturier/Katalog/issues/546
Browse files Browse the repository at this point in the history
  • Loading branch information
StephaneCouturier committed Jul 24, 2024
1 parent d7a0f18 commit 50846cf
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/mainwindow_tab_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1036,7 +1036,15 @@ void MainWindow::editDevice()
if(activeDevice->type =="Catalog"){
ui->Devices_widget_EditCatalogFields->show();
ui->Devices_widget_EditStorageFields->hide();
ui->Catalogs_comboBox_FileType->setCurrentText(activeDevice->catalog->fileType);

QMap<QString, QString> fileTypeTranslations;
fileTypeTranslations.insert("All", tr("All"));
fileTypeTranslations.insert("Audio", tr("Audio"));
fileTypeTranslations.insert("Image", tr("Image"));
fileTypeTranslations.insert("Text", tr("Text"));
fileTypeTranslations.insert("Video", tr("Video"));
ui->Catalogs_comboBox_FileType->setCurrentText(fileTypeTranslations.value(activeDevice->catalog->fileType));

ui->Catalogs_checkBox_IncludeHidden->setChecked(activeDevice->catalog->includeHidden);
ui->Catalogs_checkBox_IncludeMetadata->setChecked(activeDevice->catalog->includeMetadata);
//DEV: ui->Catalogs_checkBox_isFullDevice->setChecked(selectedCatalogIsFullDevice);
Expand Down

0 comments on commit 50846cf

Please sign in to comment.