Skip to content

Commit f279fb6

Browse files
committed
Remove redundant contextMenu disposal in TrayIcon
The explicit disposal of contextMenu in TrayIcon's dispose method has been removed, likely because contextMenu is now managed elsewhere or its disposal is handled automatically.
1 parent e7664b7 commit f279fb6

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

packages/nativeapi/lib/src/tray_icon.dart

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -254,9 +254,6 @@ class TrayIcon
254254
// Dispose event emitter (will call stopEventListening if needed)
255255
disposeEventEmitter();
256256

257-
if (contextMenu != null) {
258-
contextMenu!.dispose();
259-
}
260257
bindings.native_tray_icon_destroy(_nativeHandle);
261258
}
262259
}

0 commit comments

Comments
 (0)