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
5 changes: 5 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,11 @@ fn make_box_tab(dbox: &DBox, window: &ApplicationWindow, tab_num: u32) -> gtk::B
let win_clone = window.clone();
delete_row.connect_activated(move |_row| on_delete_clicked(&win_clone, del_bn_clone.clone()));

// Deleting a running box would pull it out from under whatever is using it,
// so make the user stop it first. The Stop button on the header is right
// there while the box is up; once it is down the row enables itself.
delete_row.set_sensitive(!dbox.is_running);

// Clone Box Icon
let clone_icon = gtk::Image::from_icon_name(&get_available_icon_name(COPY_ICON_NAMES));

Expand Down