Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd4410e7

Browse files
authored
feat(ui): show alias instead of peerId in terminal tab label (rustdesk#13332)
1 parente3fcc6c commitd4410e7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎flutter/lib/desktop/pages/terminal_tab_page.dart‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,11 @@ class _TerminalTabPageState extends State<TerminalTabPage> {
6161
String? connToken,
6262
}) {
6363
final tabKey='${peerId}_$terminalId';
64+
final alias= bind.mainGetPeerOptionSync(id: peerId, key:'alias');
65+
final tabLabel= alias.isNotEmpty?'$alias #$terminalId':'$peerId #$terminalId';
6466
returnTabInfo(
6567
key: tabKey,
66-
label:'$peerId #$terminalId',
68+
label:tabLabel,
6769
selectedIcon: selectedIcon,
6870
unselectedIcon: unselectedIcon,
6971
onTabCloseButton: ()async {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp