File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,6 +18,11 @@ const ConfigKey mixxx::library::prefs::kRescanOnStartupConfigKey =
1818 mixxx::library::prefs::kConfigGroup ,
1919 QStringLiteral (" RescanOnStartup" )};
2020
21+ const ConfigKey mixxx::library::prefs::kShowScanSummaryConfigKey =
22+ ConfigKey{
23+ mixxx::library::prefs::kConfigGroup ,
24+ QStringLiteral (" show_library_scan_summary" )};
25+
2126const ConfigKey mixxx::library::prefs::kKeyNotationConfigKey =
2227 ConfigKey{
2328 mixxx::library::prefs::kConfigGroup ,
Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ extern const QString kConfigGroup;
1414
1515extern const ConfigKey kRescanOnStartupConfigKey ;
1616
17+ extern const ConfigKey kShowScanSummaryConfigKey ;
18+
1719extern const ConfigKey kKeyNotationConfigKey ;
1820
1921extern const ConfigKey kTrackDoubleClickActionConfigKey ;
Original file line number Diff line number Diff line change 3939#ifdef __ENGINEPRIME__
4040#include " library/export/libraryexporter.h"
4141#endif
42+ #include " library/library_prefs.h"
4243#include " library/overviewcache.h"
4344#include " library/trackcollectionmanager.h"
4445#include " mixer/playerinfo.h"
@@ -1217,6 +1218,11 @@ void MixxxMainWindow::slotHelpAbout() {
12171218}
12181219
12191220void MixxxMainWindow::slotLibraryScanSummaryDlg (const LibraryScanResultSummary& result) {
1221+ if (!m_pCoreServices->getSettings ()->getValue <bool >(
1222+ mixxx::library::prefs::kShowScanSummaryConfigKey , true )) {
1223+ return ;
1224+ }
1225+
12201226 // Don't show the report dialog when the scan is run during startup and no
12211227 // noteworthy changes have been detected.
12221228 if (result.autoscan &&
Original file line number Diff line number Diff line change @@ -277,6 +277,8 @@ void DlgPrefLibrary::slotUpdate() {
277277 populateDirList ();
278278 checkBox_library_scan->setChecked (m_pConfig->getValue (
279279 kRescanOnStartupConfigKey , false ));
280+ checkBox_library_scan_summary->setChecked (m_pConfig->getValue (
281+ kShowScanSummaryConfigKey , true ));
280282
281283 spinbox_history_track_duplicate_distance->setValue (m_pConfig->getValue (
282284 kHistoryTrackDuplicateDistanceConfigKey ,
@@ -509,6 +511,9 @@ void DlgPrefLibrary::slotApply() {
509511 m_pConfig->set (kRescanOnStartupConfigKey ,
510512 ConfigValue ((int )checkBox_library_scan->isChecked ()));
511513
514+ m_pConfig->set (kShowScanSummaryConfigKey ,
515+ ConfigValue ((int )checkBox_library_scan_summary->isChecked ()));
516+
512517 m_pConfig->set (kHistoryTrackDuplicateDistanceConfigKey ,
513518 ConfigValue (spinbox_history_track_duplicate_distance->value ()));
514519 m_pConfig->set (kHistoryMinTracksToKeepConfigKey ,
Original file line number Diff line number Diff line change 8989 </widget >
9090 </item >
9191
92+ <item row =" 4" column =" 0" colspan =" 2" >
93+ <widget class =" QCheckBox" name =" checkBox_library_scan_summary" >
94+ <property name =" text" >
95+ <string >Show scan summary dialog</string >
96+ </property >
97+ <property name =" checked" >
98+ <bool >true</bool >
99+ </property >
100+ </widget >
101+ </item >
102+
92103 </layout >
93104 </widget >
94105 </item >
671682 <tabstop >pushButton_relocate_dir</tabstop >
672683 <tabstop >pushButton_remove_dir</tabstop >
673684 <tabstop >checkBox_library_scan</tabstop >
685+ <tabstop >checkBox_library_scan_summary</tabstop >
674686 <tabstop >checkBox_sync_track_metadata</tabstop >
675687 <tabstop >checkBox_serato_metadata_export</tabstop >
676688 <tabstop >checkBox_use_relative_path</tabstop >
You can’t perform that action at this time.
0 commit comments