Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,12 @@ fn make_box_tab(dbox: &DBox, window: &ApplicationWindow, tab_num: u32) -> gtk::B
let win_clone = window.clone();
clone_row.connect_activated(move |_row| on_clone_clicked(&win_clone, clone_bn.clone()));

// distrobox refuses to clone a running container, and the app used to get
// round that by stopping the box behind the user's back. Like Delete, the
// row is simply unavailable until the box is stopped - the Stop button is
// right there in the header.
clone_row.set_sensitive(!dbox.is_running);

// put all into list
boxed_list.append(&open_terminal_row);
boxed_list.append(&upgrade_row);
Expand Down