diff options
author | Tulir Asokan <tulir@maunium.net> | 2020-04-19 18:06:45 +0300 |
---|---|---|
committer | Tulir Asokan <tulir@maunium.net> | 2020-04-19 18:06:49 +0300 |
commit | a66b02ae8b65db97ee51adccd34cd6c173f22b8d (patch) | |
tree | a1ec45bc7be7eb797d7b9ca0dc4b98d0d1bde188 /ui/view-main.go | |
parent | 6a907354e21469a83c51f50bc4dd520ffe8915d6 (diff) |
Add progress bar for first sync
Diffstat (limited to 'ui/view-main.go')
-rw-r--r-- | ui/view-main.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ui/view-main.go b/ui/view-main.go index e38756f..b2f4ff0 100644 --- a/ui/view-main.go +++ b/ui/view-main.go @@ -169,6 +169,12 @@ func (view *MainView) ShowBare(roomView *RoomView) { }) } +func (view *MainView) OpenSyncingModal() ifc.SyncingModal { + component, modal := NewSyncingModal(view) + view.ShowModal(component) + return modal +} + func (view *MainView) OnKeyEvent(event mauview.KeyEvent) bool { view.BumpFocus(view.currentRoom) |