wip: uni links

This commit is contained in:
kingtous
2022-10-18 10:29:33 +08:00
committed by Kingtous
parent e50271cbb6
commit 5fff68011a
6 changed files with 82 additions and 0 deletions

View File

@@ -37,6 +37,7 @@ class _DesktopHomePageState extends State<DesktopHomePage>
@override
bool get wantKeepAlive => true;
var updateUrl = '';
StreamSubscription? _uniLinksSubscription;
@override
void onWindowClose() async {
@@ -455,12 +456,14 @@ class _DesktopHomePageState extends State<DesktopHomePage>
Future.delayed(Duration.zero, () {
checkArguments();
});
_uniLinksSubscription = listenUniLinks();
}
@override
void dispose() {
trayManager.removeListener(this);
windowManager.removeListener(this);
_uniLinksSubscription?.cancel();
super.dispose();
}
}