remove stupid group, bad implementation, buggy, and not usable

This commit is contained in:
rustdesk
2023-06-23 17:05:48 +08:00
parent 58e4d66b44
commit 31eea1482b
16 changed files with 34 additions and 35 deletions

View File

@@ -30,13 +30,17 @@ class GroupModel {
initialized = false;
}
Future<void> pull({force = true}) async {
Future<void> pull({force = true, quiet = false}) async {
/*
if (!force && initialized) return;
groupLoading.value = true;
groupLoadError.value = "";
if (!quiet) {
groupLoading.value = true;
groupLoadError.value = "";
}
await _pull();
groupLoading.value = false;
initialized = true;
*/
}
Future<void> _pull() async {
@@ -137,7 +141,8 @@ class GroupModel {
final api = "${await bind.mainGetApiServer()}/api/peers";
try {
var uri0 = Uri.parse(api);
final pageSize = 20;
final pageSize =
20; // ????????????????????????????????????????????????????? stupid stupis, how about >20 peers
var total = 0;
int current = 0;
var queryParameters = {

View File

@@ -16,7 +16,7 @@ class PeerTabModel with ChangeNotifier {
'Favorites',
'Discovered',
'Address Book',
defaultGroupTabname,
//defaultGroupTabname,
];
final List<IconData> icons = [
Icons.access_time_filled,