1. fix remote DirectoryOptions home initialization.
2. opt MenuEntryDivider.
This commit is contained in:
parent
747599df66
commit
adba3b8eb7
@ -1312,6 +1312,7 @@ class _FileManagerViewState extends State<FileManagerView> {
|
|||||||
},
|
},
|
||||||
dismissOnClicked: true));
|
dismissOnClicked: true));
|
||||||
}
|
}
|
||||||
|
menuItems.add(MenuEntryDivider());
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
debugPrint("buildBread fetchDirectory err=$e");
|
debugPrint("buildBread fetchDirectory err=$e");
|
||||||
} finally {
|
} finally {
|
||||||
@ -1320,7 +1321,6 @@ class _FileManagerViewState extends State<FileManagerView> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
menuItems.add(MenuEntryDivider());
|
|
||||||
mod_menu.showMenu(
|
mod_menu.showMenu(
|
||||||
context: context,
|
context: context,
|
||||||
position: RelativeRect.fromLTRB(x, y, x, y),
|
position: RelativeRect.fromLTRB(x, y, x, y),
|
||||||
|
@ -283,7 +283,9 @@ class FileController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Future<void> onReady() async {
|
Future<void> onReady() async {
|
||||||
options.value.home = await bind.mainGetHomeDir();
|
if (isLocal) {
|
||||||
|
options.value.home = await bind.mainGetHomeDir();
|
||||||
|
}
|
||||||
options.value.showHidden = (await bind.sessionGetPeerOption(
|
options.value.showHidden = (await bind.sessionGetPeerOption(
|
||||||
id: sessionID,
|
id: sessionID,
|
||||||
name: isLocal ? "local_show_hidden" : "remote_show_hidden"))
|
name: isLocal ? "local_show_hidden" : "remote_show_hidden"))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user