Skip to content

Commit 5631c02

Browse files
committed
keep --yes flag in clone, remove dbg
1 parent 6192cef commit 5631c02

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

src/dialogs/create_distrobox_dialog.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ impl CreateDistroboxDialog {
674674
pub async fn extract_create_args(&self) -> Result<CreateArgs, Error> {
675675
let imp = self.imp();
676676
let image = imp.selected_image.borrow().clone();
677-
if image.is_empty() {
677+
if image.is_empty() && imp.clone_src.borrow().is_none() {
678678
return Err(Error::InvalidField(
679679
"image".into(),
680680
"No image selected".into(),

src/distrobox/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -916,7 +916,6 @@ impl Distrobox {
916916
) -> Result<Box<dyn Child + Send>, Error> {
917917
let mut cmd = Self::create_cmd(args);
918918
cmd.remove_flag_value_arg("--image");
919-
cmd.remove_flag_arg("--yes");
920919
cmd.arg("--clone").arg(source_name);
921920
self.cmd_spawn(cmd)
922921
}

src/store/root_store.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,6 @@ impl RootStore {
254254
this.imp().downloaded_images_query.set_fetcher(move || {
255255
let this_clone = this_clone.clone();
256256
async move {
257-
dbg!("Fetching downloaded images");
258257
this_clone.fetch_downloaded_images().await
259258
}
260259
});
@@ -735,7 +734,6 @@ impl RootStore {
735734
cmd.arg("images").arg("--format").arg("json");
736735

737736
let output = self.run_to_string(cmd).await?;
738-
dbg!(&output);
739737
// Some versions of podman/docker might return empty string if no images?
740738
if output.trim().is_empty() {
741739
return Ok(HashSet::new());

0 commit comments

Comments
 (0)