Skip to content

Commit 74b558e

Browse files
authored
Add notes to the code comments of setToolTip (#54)
1 parent 62959f7 commit 74b558e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/src/tray_manager.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,12 @@ class TrayManager {
153153
}
154154

155155
/// Sets the hover text for this tray icon.
156+
///
157+
/// Must be called after the icon is set.
158+
/// ```dart
159+
/// await trayManager.setIcon(...);
160+
/// await trayManager.setToolTip(...);
161+
/// ```
156162
Future<void> setToolTip(String toolTip) async {
157163
final Map<String, dynamic> arguments = {
158164
'toolTip': toolTip,

0 commit comments

Comments
 (0)