Skip to content

Commit

Permalink
fix(Communities): Emit the signal about community tags changes
Browse files Browse the repository at this point in the history
Fixes: #10146
  • Loading branch information
borismelnik committed Apr 6, 2023
1 parent 7ebfcd0 commit 5691b12
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/modules/main/communities/view.nim
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,11 @@ QtObject:
proc discordImportErrorsCountChanged*(self: View) {.signal.}
proc communityAccessRequested*(self: View, communityId: string) {.signal.}

proc communityTagsChanged*(self: View) {.signal.}

proc setCommunityTags*(self: View, communityTags: string) =
self.communityTags = newQVariant(communityTags)
self.communityTagsChanged()

proc setDiscordOldestMessageTimestamp*(self: View, timestamp: int) {.slot.} =
if (self.discordOldestMessageTimestamp == timestamp): return
Expand Down Expand Up @@ -270,6 +273,7 @@ QtObject:

QtProperty[QVariant] tags:
read = getTags
notify = communityTagsChanged

proc getModel(self: View): QVariant {.slot.} =
return self.modelVariant
Expand Down

0 comments on commit 5691b12

Please sign in to comment.