mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-12-01 01:29:02 +08:00
bug on peer platform for mac os
This commit is contained in:
parent
ad9788681b
commit
d75cdb7811
@ -144,7 +144,7 @@ class _HomePageState extends State<HomePage> {
|
|||||||
|
|
||||||
Widget getPlatformImage(String platform) {
|
Widget getPlatformImage(String platform) {
|
||||||
platform = platform.toLowerCase();
|
platform = platform.toLowerCase();
|
||||||
if (platform == 'osx')
|
if (platform == 'mac os')
|
||||||
platform = 'mac';
|
platform = 'mac';
|
||||||
else if (platform != 'linux') platform = 'win';
|
else if (platform != 'linux') platform = 'win';
|
||||||
return Image.asset('assets/$platform.png', width: 36, height: 36);
|
return Image.asset('assets/$platform.png', width: 36, height: 36);
|
||||||
|
Loading…
Reference in New Issue
Block a user