Skip to content

Commit

Permalink
Merge branch 'rustdesk:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangbo8418 authored Apr 2, 2024
2 parents 44a62bb + 41d99d5 commit fbc8ddf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions flutter/lib/common/widgets/peer_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -750,8 +750,10 @@ abstract class BasePeerCard extends StatelessWidget {
if (succ) {
showToast(translate('Successful'));
} else {
BotToast.showText(
contentColor: Colors.red, text: translate("Failed"));
if (tab.index == PeerTabIndex.ab.index) {
BotToast.showText(
contentColor: Colors.red, text: translate("Failed"));
}
}
},
padding: menuPadding,
Expand Down
2 changes: 1 addition & 1 deletion flutter/lib/models/ab_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1490,7 +1490,7 @@ class Ab extends BaseAb {
@override
Future<bool> changePersonalHashPassword(String id, String hash) async {
if (!personal) return false;
if (!peers.any((e) => e.id == id)) return false;
if (!peers.any((e) => e.id == id)) return true;
return await _setPassword({"id": id, "hash": hash});
}

Expand Down

0 comments on commit fbc8ddf

Please sign in to comment.