Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revive #11441 #11782

Merged
merged 1 commit into from
Aug 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 11 additions & 1 deletion src/preferences/dialog/dlgpreflibrary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ void DlgPrefLibrary::slotUpdate() {
ConfigKey("[Library]","SyncTrackMetadataExport"), false));
checkBox_SeratoMetadataExport->setChecked(m_pConfig->getValue(
ConfigKey("[Library]", "SeratoMetadataExport"), false));
setSeratoMetadataEnabled(checkBox_SyncTrackMetadataExport->isChecked());
checkBox_use_relative_path->setChecked(m_pConfig->getValue(
ConfigKey("[Library]","UseRelativePathOnExport"), false));
checkBox_show_rhythmbox->setChecked(m_pConfig->getValue(
Expand Down Expand Up @@ -444,7 +445,16 @@ void DlgPrefLibrary::slotSearchDebouncingTimeoutMillisChanged(int searchDebounci
}

void DlgPrefLibrary::slotSyncTrackMetadataExportToggled() {
if (isVisible() && checkBox_SyncTrackMetadataExport->isChecked()) {
bool shouldSyncTrackMetadata = checkBox_SyncTrackMetadataExport->isChecked();
if (isVisible() && shouldSyncTrackMetadata) {
mixxx::DlgTrackMetadataExport::showMessageBoxOncePerSession();
}
setSeratoMetadataEnabled(shouldSyncTrackMetadata);
}

void DlgPrefLibrary::setSeratoMetadataEnabled(bool shouldSyncTrackMetadata) {
checkBox_SeratoMetadataExport->setEnabled(shouldSyncTrackMetadata);
if (!shouldSyncTrackMetadata) {
checkBox_SeratoMetadataExport->setChecked(false);
}
}
1 change: 1 addition & 0 deletions src/preferences/dialog/dlgpreflibrary.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ class DlgPrefLibrary : public DlgPreferencePage, public Ui::DlgPrefLibraryDlg {
private:
void initializeDirList();
void setLibraryFont(const QFont& font);
void setSeratoMetadataEnabled(bool shouldSyncTrackMetadata);

QStandardItemModel m_dirListModel;
UserSettingsPointer m_pConfig;
Expand Down