asyncjob: Only show X button if dialog is cancellable (bz 1295418)
This commit is contained in:
parent
89c3638b63
commit
9747cd5473
|
@ -197,6 +197,7 @@ class vmmAsyncJob(vmmGObjectUI):
|
|||
})
|
||||
|
||||
# UI state
|
||||
self.topwin.set_deletable(bool(self.cancel_cb))
|
||||
self.topwin.set_title(title)
|
||||
self.widget("pbar-text").set_text(text)
|
||||
self.widget("cancel-async-job").set_visible(bool(self.cancel_cb))
|
||||
|
|
Loading…
Reference in New Issue