call tab onSelected at the end of tab's initState, needed by session

uuid

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages
2023-06-07 20:31:54 +08:00
parent 2ececed0c1
commit 60b87e554b
8 changed files with 58 additions and 28 deletions

View File

@@ -49,10 +49,15 @@ enum MouseFocusScope {
}
class FileManagerPage extends StatefulWidget {
const FileManagerPage({Key? key, required this.id, this.forceRelay})
const FileManagerPage(
{Key? key,
required this.id,
required this.tabController,
this.forceRelay})
: super(key: key);
final String id;
final bool? forceRelay;
final DesktopTabController tabController;
@override
State<StatefulWidget> createState() => _FileManagerPageState();
@@ -85,6 +90,7 @@ class _FileManagerPageState extends State<FileManagerPage>
}
debugPrint("File manager page init success with id ${widget.id}");
_ffi.dialogManager.setOverlayState(_overlayKeyState);
widget.tabController.onSelected?.call(widget.id);
}
@override