This commit is contained in:
rustdesk 2024-04-16 22:53:01 +08:00
parent 736503df1b
commit 7bb4e22a77
3 changed files with 6 additions and 5 deletions

View File

@ -11,7 +11,7 @@ object FFI {
}
external fun init(ctx: Context)
external fun startServer(app_dir: String)
external fun startServer(app_dir: String, custom_client_config: String)
external fun startService()
external fun onVideoFrameUpdate(buf: ByteBuffer)
external fun onAudioFrameUpdate(buf: ByteBuffer)

View File

@ -84,7 +84,7 @@ class _ConnectionPageState extends State<ConnectionPage> {
slivers: [
SliverList(
delegate: SliverChildListDelegate([
_buildUpdateUI(),
if (!bind.isCustomClient()) _buildUpdateUI(),
_buildRemoteIDTextField(),
])),
SliverFillRemaining(

View File

@ -4,6 +4,7 @@ import 'package:flutter_hbb/mobile/pages/settings_page.dart';
import 'package:get/get.dart';
import '../../common.dart';
import '../../common/widgets/chat_page.dart';
import '../../models/platform_model.dart';
import 'connection_page.dart';
abstract class PageShape extends Widget {
@ -43,7 +44,7 @@ class HomePageState extends State<HomePage> {
void initPages() {
_pages.clear();
_pages.add(ConnectionPage());
if (!bind.isIncomingOnly()) _pages.add(ConnectionPage());
if (isAndroid) {
_pages.addAll([ChatPage(type: ChatPageType.mobileMain), ServerPage()]);
}
@ -141,7 +142,7 @@ class HomePageState extends State<HomePage> {
],
);
}
return Text("RustDesk");
return Text(bind.mainGetAppNameSync());
}
}
@ -154,7 +155,7 @@ class WebHomePage extends StatelessWidget {
// backgroundColor: MyTheme.grayBg,
appBar: AppBar(
centerTitle: true,
title: Text("RustDesk${isWeb ? " (Beta) " : ""}"),
title: Text(bind.mainGetAppNameSync()),
actions: connectionPage.appBarActions,
),
body: connectionPage,