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 --- interface/ui.go | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'interface') diff --git a/interface/ui.go b/interface/ui.go index 67cc35c..8699c79 100644 --- a/interface/ui.go +++ b/interface/ui.go @@ -40,6 +40,14 @@ type GomuksUI interface { Finish() } +type SyncingModal interface { + SetIndeterminate() + SetMessage(string) + SetSteps(int) + Step() + Close() +} + type MainView interface { GetRoom(roomID id.RoomID) RoomView AddRoom(room *rooms.Room) @@ -50,6 +58,7 @@ type MainView interface { UpdateTags(room *rooms.Room) SetTyping(roomID id.RoomID, users []id.UserID) + OpenSyncingModal() SyncingModal NotifyMessage(room *rooms.Room, message Message, should pushrules.PushActionArrayShould) } -- cgit v1.2.3