Skip to content

Commit 5dbdbe1

Browse files
committed
Remove Display and DisplayManager modules
Deleted Display.swift and DisplayManager.swift from NativeAPI, removing display-related functionality. Also commented out tray icon click handlers in the example app, likely due to removal of display dependencies.
1 parent 577b236 commit 5dbdbe1

File tree

4 files changed

+13
-361
lines changed

4 files changed

+13
-361
lines changed

Examples/Example/main.swift

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -120,18 +120,18 @@ import NativeAPI
120120
// Set the context menu for tray icon
121121
trayIcon.setContextMenu(contextMenu)
122122

123-
// Configure click handlers
124-
trayIcon.onLeftClick { trayIcon, event in
125-
print("👆 托盘图标左键点击")
126-
}
127-
128-
trayIcon.onRightClick { trayIcon, event in
129-
print("👆 托盘图标右键点击")
130-
}
131-
132-
trayIcon.onDoubleClick { trayIcon, event in
133-
print("👆 托盘图标双击")
134-
}
123+
// // Configure click handlers
124+
// trayIcon.onLeftClick { trayIcon, event in
125+
// print("👆 托盘图标左键点击")
126+
// }
127+
128+
// trayIcon.onRightClick { trayIcon, event in
129+
// print("👆 托盘图标右键点击")
130+
// }
131+
132+
// trayIcon.onDoubleClick { trayIcon, event in
133+
// print("👆 托盘图标双击")
134+
// }
135135

136136
// Show the tray icon
137137
if trayIcon.show() {

Sources/NativeAPI/Display.swift

Lines changed: 0 additions & 291 deletions
This file was deleted.

Sources/NativeAPI/DisplayManager.swift

Lines changed: 0 additions & 57 deletions
This file was deleted.

0 commit comments

Comments
 (0)