Skip to content

Commit b9ffd06

Browse files
committed
[*] update normally
1 parent 72413ab commit b9ffd06

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

wayshot/src/logic/recorder.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,8 @@ fn inner_start_recording(ui_weak: Weak<AppWindow>) -> Result<()> {
600600
_ = ui_weak.upgrade_in_event_loop(move |ui| {
601601
global_store!(ui).set_denoise_progress(0.0);
602602
global_store!(ui).set_merge_tracks_progress(0.0);
603+
global_store!(ui).set_denoise_status(UIDenoiseStatus::None);
604+
global_store!(ui).set_merge_tracks_status(UIMergeTrackStatus::None);
603605
global_store!(ui).set_record_status(UIRecordStatus::Recording);
604606
});
605607

@@ -674,7 +676,9 @@ fn inner_start_recording(ui_weak: Weak<AppWindow>) -> Result<()> {
674676
_ = ui_weak.upgrade_in_event_loop(move |ui| {
675677
global_store!(ui).set_record_status(UIRecordStatus::Stopped);
676678

677-
if global_store!(ui).get_denoise_status() != UIDenoiseStatus::Cancelled {
679+
if config::all().recorder.enable_denoise
680+
&& global_store!(ui).get_denoise_status() != UIDenoiseStatus::Cancelled
681+
{
678682
global_store!(ui).set_denoise_status(UIDenoiseStatus::Finished);
679683
}
680684

0 commit comments

Comments
 (0)