mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-11-25 05:09:04 +08:00
Merge pull request #2714 from fufesou/fix/Portuguese_Brazil_accents
try fix accets on Portuguese (Brazil)
This commit is contained in:
commit
fec4e3a049
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -4304,7 +4304,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "rdev"
|
||||
version = "0.5.0-2"
|
||||
source = "git+https://github.com/fufesou/rdev#196b589573f90703a601e6b105dd7c917fc388f9"
|
||||
source = "git+https://github.com/fufesou/rdev#916e8db3e68dbc0fe95b158c566374b159b9cba8"
|
||||
dependencies = [
|
||||
"cocoa",
|
||||
"core-foundation 0.9.3",
|
||||
|
@ -107,7 +107,7 @@ class WidgetOP extends StatefulWidget {
|
||||
class _WidgetOPState extends State<WidgetOP> {
|
||||
Timer? _updateTimer;
|
||||
String _stateMsg = '';
|
||||
String _FailedMsg = '';
|
||||
String _failedMsg = '';
|
||||
String _url = '';
|
||||
|
||||
@override
|
||||
@ -140,7 +140,7 @@ class _WidgetOPState extends State<WidgetOP> {
|
||||
String failedMsg = resultMap['failed_msg'];
|
||||
final String? url = resultMap['url'];
|
||||
final authBody = resultMap['auth_body'];
|
||||
if (_stateMsg != stateMsg || _FailedMsg != failedMsg) {
|
||||
if (_stateMsg != stateMsg || _failedMsg != failedMsg) {
|
||||
if (_url.isEmpty && url != null && url.isNotEmpty) {
|
||||
launchUrl(Uri.parse(url));
|
||||
_url = url;
|
||||
@ -154,7 +154,7 @@ class _WidgetOPState extends State<WidgetOP> {
|
||||
|
||||
setState(() {
|
||||
_stateMsg = stateMsg;
|
||||
_FailedMsg = failedMsg;
|
||||
_failedMsg = failedMsg;
|
||||
if (failedMsg.isNotEmpty) {
|
||||
widget.curOP.value = '';
|
||||
_updateTimer?.cancel();
|
||||
@ -166,7 +166,7 @@ class _WidgetOPState extends State<WidgetOP> {
|
||||
|
||||
_resetState() {
|
||||
_stateMsg = '';
|
||||
_FailedMsg = '';
|
||||
_failedMsg = '';
|
||||
_url = '';
|
||||
}
|
||||
|
||||
@ -190,11 +190,11 @@ class _WidgetOPState extends State<WidgetOP> {
|
||||
Obx(() {
|
||||
if (widget.curOP.isNotEmpty &&
|
||||
widget.curOP.value != widget.config.op) {
|
||||
_FailedMsg = '';
|
||||
_failedMsg = '';
|
||||
}
|
||||
return Offstage(
|
||||
offstage:
|
||||
_FailedMsg.isEmpty && widget.curOP.value != widget.config.op,
|
||||
_failedMsg.isEmpty && widget.curOP.value != widget.config.op,
|
||||
child: Row(
|
||||
children: [
|
||||
Text(
|
||||
@ -203,7 +203,7 @@ class _WidgetOPState extends State<WidgetOP> {
|
||||
),
|
||||
SizedBox(width: 8),
|
||||
Text(
|
||||
_FailedMsg,
|
||||
_failedMsg,
|
||||
style: TextStyle(
|
||||
fontSize: 14,
|
||||
color: Colors.red,
|
||||
|
@ -1410,10 +1410,10 @@ class _DraggableShowHide extends StatefulWidget {
|
||||
}) : super(key: key);
|
||||
|
||||
@override
|
||||
State<_DraggableShowHide> createState() => __DraggableShowHideState();
|
||||
State<_DraggableShowHide> createState() => _DraggableShowHideState();
|
||||
}
|
||||
|
||||
class __DraggableShowHideState extends State<_DraggableShowHide> {
|
||||
class _DraggableShowHideState extends State<_DraggableShowHide> {
|
||||
Offset position = Offset.zero;
|
||||
Size size = Size.zero;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user