mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-09 13:41:29 +03:00
desktop cm chat feat: disable auto jumpTo other page when current hasFocus & add unread message mark on tab
This commit is contained in:
@@ -139,14 +139,20 @@ class ConnectionManagerState extends State<ConnectionManager> {
|
||||
selectedTabBackgroundColor:
|
||||
Theme.of(context).hintColor.withOpacity(0.2),
|
||||
tabBuilder: (key, icon, label, themeConf) {
|
||||
final client = serverModel.clients.firstWhereOrNull(
|
||||
(client) => client.id.toString() == key);
|
||||
return Row(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
icon,
|
||||
Tooltip(
|
||||
message: key,
|
||||
waitDuration: Duration(seconds: 1),
|
||||
child: label),
|
||||
Obx(() => Offstage(
|
||||
offstage:
|
||||
!(client?.hasUnreadChatMessage.value ?? false),
|
||||
child:
|
||||
Icon(Icons.circle, color: Colors.red, size: 10)))
|
||||
],
|
||||
);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user