Page Install. Use path.join for install_path instead of string concat
This commit is contained in:
parent
594ce024e7
commit
a04a36d9b0
@ -7,6 +7,7 @@ import 'package:flutter_hbb/desktop/widgets/tabbar_widget.dart';
|
||||
import 'package:flutter_hbb/models/platform_model.dart';
|
||||
import 'package:flutter_hbb/models/state_model.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:path/path.dart';
|
||||
import 'package:url_launcher/url_launcher_string.dart';
|
||||
import 'package:window_manager/window_manager.dart';
|
||||
|
||||
@ -312,8 +313,7 @@ class _InstallPageBodyState extends State<_InstallPageBody>
|
||||
String? install_path = await FilePicker.platform
|
||||
.getDirectoryPath(initialDirectory: controller.text);
|
||||
if (install_path != null) {
|
||||
install_path = '$install_path\\${await bind.mainGetAppName()}';
|
||||
controller.text = install_path;
|
||||
controller.text = join(install_path, await bind.mainGetAppName());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user