mobile file transfer disable actions on drivers
This commit is contained in:
parent
829f30fe29
commit
62c53f0343
@ -46,7 +46,7 @@ class _FileManagerPageState extends State<FileManagerPage> {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) => ChangeNotifierProvider.value(
|
Widget build(BuildContext context) => ChangeNotifierProvider.value(
|
||||||
value: gFFI.fileModel,
|
value: model,
|
||||||
child: Consumer<FileModel>(builder: (_context, _model, _child) {
|
child: Consumer<FileModel>(builder: (_context, _model, _child) {
|
||||||
return WillPopScope(
|
return WillPopScope(
|
||||||
onWillPop: () async {
|
onWillPop: () async {
|
||||||
@ -107,6 +107,7 @@ class _FileManagerPageState extends State<FileManagerPage> {
|
|||||||
value: "refresh",
|
value: "refresh",
|
||||||
),
|
),
|
||||||
PopupMenuItem(
|
PopupMenuItem(
|
||||||
|
enabled: model.currentDir.path != "/",
|
||||||
child: Row(
|
child: Row(
|
||||||
children: [
|
children: [
|
||||||
Icon(Icons.check,
|
Icon(Icons.check,
|
||||||
@ -118,6 +119,7 @@ class _FileManagerPageState extends State<FileManagerPage> {
|
|||||||
value: "select",
|
value: "select",
|
||||||
),
|
),
|
||||||
PopupMenuItem(
|
PopupMenuItem(
|
||||||
|
enabled: model.currentDir.path != "/",
|
||||||
child: Row(
|
child: Row(
|
||||||
children: [
|
children: [
|
||||||
Icon(Icons.folder_outlined,
|
Icon(Icons.folder_outlined,
|
||||||
@ -129,6 +131,7 @@ class _FileManagerPageState extends State<FileManagerPage> {
|
|||||||
value: "folder",
|
value: "folder",
|
||||||
),
|
),
|
||||||
PopupMenuItem(
|
PopupMenuItem(
|
||||||
|
enabled: model.currentDir.path != "/",
|
||||||
child: Row(
|
child: Row(
|
||||||
children: [
|
children: [
|
||||||
Icon(
|
Icon(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user