From a66b02ae8b65db97ee51adccd34cd6c173f22b8d Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sun, 19 Apr 2020 18:06:45 +0300 Subject: Add progress bar for first sync --- ui/view-main.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ui/view-main.go') 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) -- cgit v1.2.3