Skip to content

Commit 80ee9b9

Browse files
committed
v0.3.0
1 parent 12bd020 commit 80ee9b9

File tree

5 files changed

+17
-3
lines changed

5 files changed

+17
-3
lines changed

packages/tray_manager/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.3.0
2+
3+
* chore: Add `bringAppToFront` param to `popUpContextMenu` method (#58)
4+
15
## 0.2.4
26

37
* [windows][bug] fix the crash bug on windows targeting c++20 (#47)

packages/tray_manager/example/lib/pages/home.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// ignore_for_file: deprecated_member_use
2+
13
import 'dart:async';
24
import 'dart:io';
35

packages/tray_manager/example/macos/Runner/AppDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Cocoa
22
import FlutterMacOS
33

4-
@NSApplicationMain
4+
@main
55
class AppDelegate: FlutterAppDelegate {
66
override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
77
return true

packages/tray_manager/lib/src/tray_manager.dart

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,15 @@ class TrayManager {
184184
}
185185

186186
/// Pops up the context menu of the tray icon.
187-
Future<void> popUpContextMenu({bool bringAppToFront = false}) async {
187+
///
188+
/// [bringAppToFront] If true, the app will be brought to the front when the
189+
/// context menu is shown. Only works on Windows.
190+
Future<void> popUpContextMenu({
191+
@Deprecated(
192+
'This parameter is only supported on Windows and will be removed in the future.',
193+
)
194+
bool bringAppToFront = false,
195+
}) async {
188196
final Map<String, dynamic> arguments = {
189197
'bringAppToFront': bringAppToFront,
190198
};

packages/tray_manager/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: tray_manager
22
description: This plugin allows Flutter desktop apps to defines system tray.
3-
version: 0.2.4
3+
version: 0.3.0
44
homepage: https://github.com/leanflutter/tray_manager
55

66
platforms:

0 commit comments

Comments
 (0)