Remove all overlays
()
| 997 | |
| 998 | // Remove all overlays |
| 999 | func removeOverlays() { |
| 1000 | overlays := session.Window.Canvas().Overlays() |
| 1001 | list := overlays.List() |
| 1002 | |
| 1003 | for o := range list { |
| 1004 | overlays.Remove(list[o]) |
| 1005 | } |
| 1006 | |
| 1007 | if res.loading != nil { |
| 1008 | res.loading.Hide() |
| 1009 | res.loading.Stop() |
| 1010 | res.loading = nil |
| 1011 | } |
| 1012 | } |
| 1013 | |
| 1014 | // Add an overlay with the loading animation |
| 1015 | func showLoadingOverlay() { |
no outgoing calls
no test coverage detected