confirm connection tab close

This commit is contained in:
csf
2022-09-08 19:26:55 +08:00
parent 1c170366e7
commit b93e59df21
4 changed files with 38 additions and 12 deletions

View File

@@ -71,10 +71,10 @@ class _FileManagerTabPageState extends State<FileManagerTabPage> {
backgroundColor: MyTheme.color(context).bg,
body: DesktopTab(
controller: tabController,
onClose: () {
onWindowCloseButton: () {
tabController.clear();
},
tail: AddButton().paddingOnly(left: 10),
tail: const AddButton().paddingOnly(left: 10),
)),
),
);