fix remote tab lable update, Get.find always return the first instance

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages
2023-09-28 09:05:10 +08:00
parent bdb1fc2ed7
commit 6028cfc1a3
5 changed files with 4 additions and 25 deletions

View File

@@ -269,11 +269,8 @@ class DesktopTab extends StatelessWidget {
}
static RxString tablabelGetter(String peerId) {
PeerStringOption.init(peerId, 'tabLabel', () {
final alias = bind.mainGetPeerOptionSync(id: peerId, key: 'alias');
return getDesktopTabLabel(peerId, alias);
});
return PeerStringOption.find(peerId, 'tabLabel');
final alias = bind.mainGetPeerOptionSync(id: peerId, key: 'alias');
return RxString(getDesktopTabLabel(peerId, alias));
}
@override