mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-11 11:41:27 +03:00
feat: implement tray in linux
This commit is contained in:
@@ -432,7 +432,8 @@ class _DesktopHomePageState extends State<DesktopHomePage>
|
||||
updateUrl = await bind.mainGetSoftwareUpdateUrl();
|
||||
if (updateUrl.isNotEmpty) setState(() {});
|
||||
});
|
||||
initTray();
|
||||
// disable this tray because we use tray function provided by rust now
|
||||
// initTray();
|
||||
trayManager.addListener(this);
|
||||
windowManager.addListener(this);
|
||||
rustDeskWinManager.setMethodHandler((call, fromWindowId) async {
|
||||
|
||||
@@ -90,10 +90,6 @@ class PlatformFFI {
|
||||
/// Init the FFI class, loads the native Rust core library.
|
||||
Future<void> init(String appType) async {
|
||||
_appType = appType;
|
||||
// if (isDesktop) {
|
||||
// // TODO
|
||||
// return;
|
||||
// }
|
||||
final dylib = Platform.isAndroid
|
||||
? DynamicLibrary.open('librustdesk.so')
|
||||
: Platform.isLinux
|
||||
|
||||
Reference in New Issue
Block a user