mirror of
https://github.com/xlmnxp/blue-recorder.git
synced 2024-11-23 17:13:11 +03:00
refactor: remove redundant references
This commit is contained in:
parent
ba84087c03
commit
ca99fb7578
@ -16,7 +16,7 @@ pub fn initialize() -> PathBuf {
|
|||||||
if !&config_path.exists() {
|
if !&config_path.exists() {
|
||||||
let config_directories = &mut config_path.to_owned();
|
let config_directories = &mut config_path.to_owned();
|
||||||
config_directories.pop();
|
config_directories.pop();
|
||||||
std::fs::create_dir_all(&config_directories).unwrap_or_default();
|
std::fs::create_dir_all(config_directories).unwrap_or_default();
|
||||||
std::fs::File::create(&config_path).unwrap();
|
std::fs::File::create(&config_path).unwrap();
|
||||||
default();
|
default();
|
||||||
} else {
|
} else {
|
||||||
|
@ -184,7 +184,7 @@ impl Ffmpeg {
|
|||||||
ffmpeg_command.arg("-f");
|
ffmpeg_command.arg("-f");
|
||||||
ffmpeg_command.arg("pulse");
|
ffmpeg_command.arg("pulse");
|
||||||
ffmpeg_command.arg("-i");
|
ffmpeg_command.arg("-i");
|
||||||
ffmpeg_command.arg(&self.audio_id.active_id().unwrap());
|
ffmpeg_command.arg(self.audio_id.active_id().unwrap());
|
||||||
ffmpeg_command.arg("-f");
|
ffmpeg_command.arg("-f");
|
||||||
ffmpeg_command.arg("ogg");
|
ffmpeg_command.arg("ogg");
|
||||||
ffmpeg_command.arg(format!(
|
ffmpeg_command.arg(format!(
|
||||||
|
@ -577,7 +577,7 @@ pub fn build_ui(application: &Application) {
|
|||||||
.unwrap();
|
.unwrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
let logo = Image::from_file(&about_icon_path.to_str().unwrap());
|
let logo = Image::from_file(about_icon_path.to_str().unwrap());
|
||||||
about_dialog.set_transient_for(Some(&main_window));
|
about_dialog.set_transient_for(Some(&main_window));
|
||||||
about_dialog.set_program_name(Some(&gettext("Blue Recorder")));
|
about_dialog.set_program_name(Some(&gettext("Blue Recorder")));
|
||||||
about_dialog.set_version(Some("0.2.0"));
|
about_dialog.set_version(Some("0.2.0"));
|
||||||
|
Loading…
Reference in New Issue
Block a user