mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
desktop, remote toolbar, os account
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
@@ -503,11 +503,6 @@ _connectDialog(
|
||||
}
|
||||
|
||||
submit() {
|
||||
// to-do:
|
||||
// username and password are about remote OS account.
|
||||
// If the remote side is headless.
|
||||
// The client side should login to remote OS account, to enable X desktop session.
|
||||
// `username` and `password` will be used in the near future.
|
||||
final osUsername = osUsernameController?.text.trim() ?? '';
|
||||
final osPassword = osPasswordController?.text.trim() ?? '';
|
||||
final password = passwordController?.text.trim() ?? '';
|
||||
@@ -565,7 +560,7 @@ _connectDialog(
|
||||
}
|
||||
return Column(
|
||||
children: [
|
||||
descWidget(translate('login_linux_tooltip_tip')),
|
||||
descWidget(translate('login_linux_tip')),
|
||||
DialogTextField(
|
||||
title: translate(DialogTextField.kUsernameTitle),
|
||||
controller: osUsernameController,
|
||||
|
||||
@@ -225,20 +225,16 @@ class _ConnectionPageState extends State<ConnectionPage>
|
||||
children: [
|
||||
Button(
|
||||
isOutline: true,
|
||||
onTap: () {
|
||||
onConnect(isFileTransfer: true);
|
||||
},
|
||||
onTap: () => enterUserLoginAndPasswordDialog(
|
||||
'fdsfd',
|
||||
gFFI.dialogManager,
|
||||
),
|
||||
text: "Transfer File",
|
||||
),
|
||||
const SizedBox(
|
||||
width: 17,
|
||||
),
|
||||
Button(
|
||||
onTap: () => enterUserLoginAndPasswordDialog(
|
||||
'fdsfd',
|
||||
gFFI.dialogManager,
|
||||
),
|
||||
text: "Connect"),
|
||||
Button(onTap: onConnect, text: "Connect"),
|
||||
],
|
||||
),
|
||||
)
|
||||
|
||||
@@ -689,6 +689,26 @@ class _ControlMenu extends StatelessWidget {
|
||||
close();
|
||||
}
|
||||
|
||||
descWidget(String text) {
|
||||
return Column(
|
||||
children: [
|
||||
Align(
|
||||
alignment: Alignment.centerLeft,
|
||||
child: Text(
|
||||
text,
|
||||
maxLines: 3,
|
||||
softWrap: true,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
style: TextStyle(fontSize: 16),
|
||||
),
|
||||
),
|
||||
Container(
|
||||
height: 8,
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
|
||||
return CustomAlertDialog(
|
||||
title: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
@@ -700,6 +720,7 @@ class _ControlMenu extends StatelessWidget {
|
||||
content: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
descWidget(translate("os_account_desk_tip")),
|
||||
DialogTextField(
|
||||
title: translate(DialogTextField.kUsernameTitle),
|
||||
controller: usernameController,
|
||||
|
||||
Reference in New Issue
Block a user