mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-12-12 02:57:22 +00:00
sort address book name dropdown (#8127)
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
@@ -510,7 +510,8 @@ class AbModel {
|
||||
}
|
||||
|
||||
void setShouldAsync(bool v) async {
|
||||
await bind.mainSetLocalOption(key: syncAbOption, value: v ? 'Y' : defaultOptionNo);
|
||||
await bind.mainSetLocalOption(
|
||||
key: syncAbOption, value: v ? 'Y' : defaultOptionNo);
|
||||
_syncAllFromRecent = true;
|
||||
_timerCounter = 0;
|
||||
}
|
||||
@@ -648,6 +649,10 @@ class AbModel {
|
||||
return addressbooks.keys.toList();
|
||||
}
|
||||
|
||||
String personalAddressBookName() {
|
||||
return _personalAddressBookName;
|
||||
}
|
||||
|
||||
Future<void> setCurrentName(String name) async {
|
||||
final oldName = _currentName.value;
|
||||
if (addressbooks.containsKey(name)) {
|
||||
|
||||
Reference in New Issue
Block a user