|
@@ -855,7 +855,12 @@ class mainFrame(wx.Frame):
|
|
|
flag = wx.EXPAND | wx.LEFT | wx.RIGHT | wx.BOTTOM,
|
|
|
border = 5)
|
|
|
|
|
|
- if self.get_dcmd is None:
|
|
|
+ closeBox = False
|
|
|
+ for p in self.task.params:
|
|
|
+ if p.get('age', 'old') == 'new':
|
|
|
+ closeBox = True
|
|
|
+
|
|
|
+ if self.get_dcmd is None and closeBox:
|
|
|
# close dialog when command is terminated
|
|
|
self.closebox = wx.CheckBox(parent = self.panel,
|
|
|
label = _('Close dialog on finish'), style = wx.NO_BORDER)
|