mirror of
https://github.com/muesli/telephant
synced 2024-11-26 21:30:19 +00:00
Initialize AccountBridge with empty values
This commit is contained in:
parent
b901dd7b69
commit
714816ea8f
1 changed files with 6 additions and 1 deletions
|
@ -255,10 +255,15 @@ func setupMastodon(config Account) {
|
|||
tc = mastodon.NewAccount(config.Instance, config.Token, config.ClientID, config.ClientSecret)
|
||||
postModel := NewMessageModel(nil)
|
||||
|
||||
accountBridge.SetUsername("Connecting...")
|
||||
accountBridge.SetUsername("Not connected...")
|
||||
accountBridge.SetNotifications(notificationModel)
|
||||
accountBridge.SetConversation(conversationModel)
|
||||
accountBridge.SetAccountMessages(accountMessagesModel)
|
||||
accountBridge.SetAvatar("qrc:/qml/images/telephant_logo.png")
|
||||
accountBridge.SetPosts(0)
|
||||
accountBridge.SetFollowCount(0)
|
||||
accountBridge.SetFollowerCount(0)
|
||||
accountBridge.SetPostSizeLimit(0)
|
||||
|
||||
// Notifications model must the first model to be added
|
||||
// It will always be displayed right-most
|
||||
|
|
Loading…
Reference in a new issue