forked from M-Labs/artiq
1
0
Fork 0

gui/schedule: improve delete status bar message

This commit is contained in:
Sebastien Bourdeauducq 2015-10-27 18:20:11 +08:00
parent 138ba7e2fa
commit f872d92d22
1 changed files with 5 additions and 1 deletions

View File

@ -104,5 +104,9 @@ class ScheduleDock(dockarea.Dock):
if idx: if idx:
row = idx[0].row() row = idx[0].row()
rid = self.table_model.row_to_key[row] rid = self.table_model.row_to_key[row]
self.status_bar.showMessage("Deleted RID {}".format(rid)) if graceful:
msg = "Requested termination of RID {}".format(rid)
else:
msg = "Deleted RID {}".format(rid)
self.status_bar.showMessage(msg)
asyncio.ensure_future(self.delete(rid, graceful)) asyncio.ensure_future(self.delete(rid, graceful))