mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-12-12 19:17:58 +00:00
use get to call translate()
Signed-off-by: dignow <linlong1265@gmail.com>
This commit is contained in:
@@ -39,8 +39,6 @@ class ServerModel with ChangeNotifier {
|
|||||||
|
|
||||||
late String _emptyIdShow;
|
late String _emptyIdShow;
|
||||||
late final IDTextEditingController _serverId;
|
late final IDTextEditingController _serverId;
|
||||||
final _serverPasswd =
|
|
||||||
TextEditingController(text: translate("Generating ..."));
|
|
||||||
|
|
||||||
final tabController = DesktopTabController(tabType: DesktopTabType.cm);
|
final tabController = DesktopTabController(tabType: DesktopTabType.cm);
|
||||||
|
|
||||||
@@ -64,6 +62,9 @@ class ServerModel with ChangeNotifier {
|
|||||||
|
|
||||||
int get connectStatus => _connectStatus;
|
int get connectStatus => _connectStatus;
|
||||||
|
|
||||||
|
TextEditingController get _serverPasswd =>
|
||||||
|
TextEditingController(text: translate("Generating ..."));
|
||||||
|
|
||||||
String get verificationMethod {
|
String get verificationMethod {
|
||||||
final index = [
|
final index = [
|
||||||
kUseTemporaryPassword,
|
kUseTemporaryPassword,
|
||||||
|
|||||||
Reference in New Issue
Block a user