Skip to content

Commit feb1a5b

Browse files
committed
Add Activate Frame and Create Frame buttons
1 parent 3015669 commit feb1a5b

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Sources/EmacsOpenApp/EmacsOpen.swift

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,20 @@ import SwiftUI
1111

1212
Divider()
1313

14+
Button("Activate Frame") {
15+
print("Activating Frame")
16+
_ = activateFrame()
17+
}.padding()
18+
19+
Divider()
20+
21+
Button("Create Frame") {
22+
print("Creating Frame")
23+
_ = activateFrame(createFrame: true)
24+
}.padding()
25+
26+
Divider()
27+
1428
Button("Quit EmacsOpen") {
1529
print("Quitting EmacsOpen")
1630
NSApplication.shared.terminate(nil)

0 commit comments

Comments
 (0)