Skip to content

Commit

Permalink
Recording: with empty config, save default split size immediately
Browse files Browse the repository at this point in the history
and adjust the default in RecordingManager
  • Loading branch information
ronso0 committed May 30, 2024
1 parent ef8f24c commit 6eb76bc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/preferences/dialog/dlgprefrecord.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,12 @@ DlgPrefRecord::DlgPrefRecord(QWidget* parent, UserSettingsPointer pConfig)
if (index >= 0) {
// Set file split size
comboBoxSplitting->setCurrentIndex(index);
}
else {
} else {
//Use max RIFF size (4GB) as default index, since usually people don't want to split.
comboBoxSplitting->setCurrentIndex(4);
// Save the value immediately, otherwise RecordingManager would fall back
// to 650 MB
saveSplitSize();
}

setScrollSafeGuard(comboBoxSplitting);
Expand Down
2 changes: 1 addition & 1 deletion src/recording/recordingmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ quint64 RecordingManager::getFileSplitSize() {
} else if (fileSizeStr == SPLIT_120MIN) {
return SIZE_4GB; //Ignore size limit. use time limit
} else {
return SIZE_650MB;
return SIZE_4GB; // default
}
}

Expand Down

0 comments on commit 6eb76bc

Please sign in to comment.