From ff53bde6693f0732aff890df94bbb6b9a30df9f7 Mon Sep 17 00:00:00 2001 From: Dave Patrick Caberto Date: Sun, 25 Feb 2024 09:01:53 +0800 Subject: [PATCH] refactor: use more specific name --- src/window/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/window/mod.rs b/src/window/mod.rs index 2dff8f49..8393fb9e 100644 --- a/src/window/mod.rs +++ b/src/window/mod.rs @@ -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); } }); @@ -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); @@ -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();