mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-12-12 02:57:22 +00:00
recent/ab password keep same: sync connected password to addressbook anyway, delete recent password
also delete ab password Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
@@ -752,14 +752,13 @@ abstract class BasePeerCard extends StatelessWidget {
|
||||
style: style,
|
||||
),
|
||||
proc: () async {
|
||||
if (tab == PeerTabIndex.ab) {
|
||||
gFFI.abModel.unrememberPassword(id);
|
||||
await bind.mainForgetPassword(id: id);
|
||||
gFFI.abModel.pushAb();
|
||||
} else {
|
||||
bind.mainForgetPassword(id: id);
|
||||
showToast(translate('Successful'));
|
||||
bool result = gFFI.abModel.changePassword(id, '');
|
||||
await bind.mainForgetPassword(id: id);
|
||||
if (result) {
|
||||
bool toast = tab == PeerTabIndex.ab;
|
||||
gFFI.abModel.pushAb(toastIfFail: toast, toastIfSucc: toast);
|
||||
}
|
||||
showToast(translate('Successful'));
|
||||
},
|
||||
padding: menuPadding,
|
||||
dismissOnClicked: true,
|
||||
|
||||
Reference in New Issue
Block a user