add desktop cm backend

This commit is contained in:
csf
2022-08-17 17:23:55 +08:00
parent fc061d2b49
commit 3063adc2fd
9 changed files with 425 additions and 222 deletions

View File

@@ -106,7 +106,6 @@ class DesktopServerPage extends StatefulWidget implements PageShape {
}
class _DesktopServerPageState extends State<DesktopServerPage> {
@override
Widget build(BuildContext context) {
return ChangeNotifierProvider.value(
@@ -182,7 +181,7 @@ class ConnectionManager extends StatelessWidget {
MaterialStateProperty.all(Colors.red)),
icon: Icon(Icons.close),
onPressed: () {
bind.serverCloseConnection(connId: entry.key);
bind.cmCloseConnection(connId: entry.key);
gFFI.invokeMethod(
"cancel_notification", entry.key);
},