Skip to content

Commit 7fbbdc2

Browse files
committed
[*] update normally
1 parent e0f7168 commit 7fbbdc2

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

lib/recorder/src/recorder.rs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,7 @@ impl RecordingSession {
850850
stop_sig: self.stop_sig_combine,
851851
};
852852

853-
combine_tracks(combine_config, combine_progress_cb)?;
853+
let combine_tracks_state = combine_tracks(combine_config, combine_progress_cb)?;
854854

855855
if tmp_output_file.exists() {
856856
_ = fs::rename(&tmp_output_file, &self.config.output_path);
@@ -862,10 +862,12 @@ impl RecordingSession {
862862
self.config.output_path.display(),
863863
);
864864
} else {
865-
return Err(RecorderError::Ffmpeg(format!(
866-
"Save recorded file: {} failed. Something wrong with ffmpeg operation",
867-
self.config.output_path.display()
868-
)));
865+
if combine_tracks_state == ProgressState::Finished {
866+
return Err(RecorderError::Ffmpeg(format!(
867+
"Save recorded file: {} failed. Something wrong with ffmpeg operation",
868+
self.config.output_path.display()
869+
)));
870+
}
869871
}
870872

871873
if self.config.remove_cache_files && self.config.output_path.exists() {

wayshot/ui/panel/desktop/home.slint

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ component Banners inherits VerticalLayout {
434434
HorizontalLayout {
435435
Label {
436436
color: Theme.light-text-color;
437-
text: Store.merge-tracks-status == MergeTrackStatus.Finished ? (Logic.tr("Merging tracks successfully!") + " " + Logic.tr("Output file") + ": " + Store.final-video-path) : Logic.tr("Merging tracks failed");
437+
text: Store.merge-tracks-status == MergeTrackStatus.Finished ? (Logic.tr("Merging tracks successfully") + "! " + Logic.tr("Output file") + ": " + Store.final-video-path) : Logic.tr("Merging tracks failed");
438438
font-weight: Theme.bold-font-weight;
439439
}
440440
}

0 commit comments

Comments
 (0)