Commit 36bdc3c7768afc926d9b34be7057bd97bfa54def
1 parent
b27b4dad
Exists in
master
and in
68 other branches
ENH: Busy cursor in save project
Showing
1 changed file
with
3 additions
and
1 deletions
Show diff stats
invesalius/control.py
| ... | ... | @@ -195,6 +195,7 @@ class Controller(): |
| 195 | 195 | session.OpenProject(filepath) |
| 196 | 196 | |
| 197 | 197 | def SaveProject(self, path=None): |
| 198 | + ps.Publisher().sendMessage('Begin busy cursor') | |
| 198 | 199 | session = ses.Session() |
| 199 | 200 | if path: |
| 200 | 201 | dirpath, filename = os.path.split(path) |
| ... | ... | @@ -206,7 +207,8 @@ class Controller(): |
| 206 | 207 | prj.Project().SavePlistProject(dirpath, filename) |
| 207 | 208 | |
| 208 | 209 | session.SaveProject() |
| 209 | - | |
| 210 | + ps.Publisher().sendMessage('End busy cursor') | |
| 211 | + | |
| 210 | 212 | def CloseProject(self): |
| 211 | 213 | proj = prj.Project() |
| 212 | 214 | proj.Close() | ... | ... |