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 /interface | |
parent | 6a907354e21469a83c51f50bc4dd520ffe8915d6 (diff) |
Add progress bar for first sync
Diffstat (limited to 'interface')
-rw-r--r-- | interface/ui.go | 9 |
1 files changed, 9 insertions, 0 deletions
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) } |