mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-06-07 18:02:48 +08:00
Fix. Custom client, ui bugs (#7405)
* Fix. Custom client, ui bugs Signed-off-by: fufesou <shuanglongchen@yeah.net> * trivial Signed-off-by: fufesou <shuanglongchen@yeah.net> --------- Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
parent
0808672b6e
commit
efd1f24ab2
@ -3122,8 +3122,8 @@ Widget loadIcon(double size) {
|
||||
|
||||
var imcomingOnlyHomeSize = Size(280, 300);
|
||||
Size getIncomingOnlyHomeSize() {
|
||||
final magicWidth = Platform.isWindows ? 11.0 : 0.0;
|
||||
final magicHeight = 8.0;
|
||||
final magicWidth = Platform.isWindows ? 11.0 : 2.0;
|
||||
final magicHeight = 10.0;
|
||||
return imcomingOnlyHomeSize +
|
||||
Offset(magicWidth, kDesktopRemoteTabBarHeight + magicHeight);
|
||||
}
|
||||
|
@ -577,6 +577,10 @@ class _DesktopHomePageState extends State<DesktopHomePage>
|
||||
child: OutlinedButton(
|
||||
onPressed: () {
|
||||
SystemNavigator.pop(); // Close the application
|
||||
// https://github.com/flutter/flutter/issues/66631
|
||||
if (Platform.isWindows) {
|
||||
exit(0);
|
||||
}
|
||||
},
|
||||
child: Text(translate('Quit')),
|
||||
),
|
||||
|
@ -375,7 +375,7 @@ class DesktopTab extends StatelessWidget {
|
||||
Expanded(
|
||||
child: GestureDetector(
|
||||
// custom double tap handler
|
||||
onTap: showMaximize
|
||||
onTap: !bind.isIncomingOnly() && showMaximize
|
||||
? () {
|
||||
final current = DateTime.now().millisecondsSinceEpoch;
|
||||
final elapsed = current - _lastClickTime;
|
||||
|
Loading…
Reference in New Issue
Block a user