Skip to content

Commit

Permalink
refactor: use more specific name
Browse files Browse the repository at this point in the history
  • Loading branch information
SeaDve committed Feb 25, 2024
1 parent 3e1867b commit ff53bde
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/window/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ mod imp {
if let Err(err) = obj.toggle_pause() {
let err = err.context(gettext("Failed to toggle pause"));
tracing::error!("{:?}", err);
obj.present_error_dialog(&err);
obj.present_recording_error_dialog(&err);
}
});

Expand Down Expand Up @@ -219,7 +219,7 @@ impl Window {
}
}

pub fn present_error_dialog(&self, err: &Error) {
pub fn present_recording_error_dialog(&self, err: &Error) {
const OK_RESPONSE_ID: &str = "ok";

let err_text = format!("{:?}", err);
Expand Down Expand Up @@ -404,7 +404,7 @@ impl Window {
} else {
tracing::error!("{:?}", err);

self.present_error_dialog(err);
self.present_recording_error_dialog(err);

if let Some(surface) = self.surface() {
surface.beep();
Expand Down

0 comments on commit ff53bde

Please sign in to comment.