cmd/rpcfetch: update act in ui thread
This commit is contained in:
parent
8eb33b2fc0
commit
2c7d251298
@ -84,15 +84,17 @@ func apply() {
|
|||||||
act := *prof.Activity
|
act := *prof.Activity
|
||||||
s := &applyState{}
|
s := &applyState{}
|
||||||
|
|
||||||
act.State = s.replace(act.State)
|
fyne.DoAndWait(func() {
|
||||||
act.Details = s.replace(act.Details)
|
act.State = s.replace(act.State)
|
||||||
act.Timestamps = &discord.ActivityTimestamps{Start: launchTime.Unix()}
|
act.Details = s.replace(act.Details)
|
||||||
act.Assets = &discord.ActivityAssets{
|
act.Timestamps = &discord.ActivityTimestamps{Start: launchTime.Unix()}
|
||||||
LargeImage: act.Assets.LargeImage,
|
act.Assets = &discord.ActivityAssets{
|
||||||
LargeText: s.replace(act.Assets.LargeText),
|
LargeImage: act.Assets.LargeImage,
|
||||||
SmallImage: act.Assets.SmallImage,
|
LargeText: s.replace(act.Assets.LargeText),
|
||||||
SmallText: s.replace(act.Assets.SmallText),
|
SmallImage: act.Assets.SmallImage,
|
||||||
}
|
SmallText: s.replace(act.Assets.SmallText),
|
||||||
|
}
|
||||||
|
})
|
||||||
confLock.RUnlock()
|
confLock.RUnlock()
|
||||||
|
|
||||||
if nonce, err := retry(&act, s); err != nil {
|
if nonce, err := retry(&act, s); err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user