mirror of
https://github.com/dscyrescotti/Memola.git
synced 2026-04-25 10:08:34 +02:00
feat: open memo object over dasboardview instead of new window
This commit is contained in:
@@ -29,19 +29,7 @@ struct MemolaApp: App {
|
||||
.defaultPosition(.center)
|
||||
.windowResizability(.contentSize)
|
||||
.defaultSize(width: 1200, height: 800)
|
||||
#endif
|
||||
WindowGroup(id: "memo-view", for: URL.self) { url in
|
||||
if let url = url.wrappedValue, let memo = Persistence.loadMemo(of: url) {
|
||||
MemoView(memo: memo)
|
||||
#if os(macOS)
|
||||
.frame(minWidth: 1000, minHeight: 600)
|
||||
#endif
|
||||
}
|
||||
}
|
||||
#if os(macOS)
|
||||
.defaultPosition(.center)
|
||||
.windowResizability(.contentSize)
|
||||
.defaultSize(width: 1200, height: 800)
|
||||
.windowToolbarStyle(.unifiedCompact)
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user