builds
parent
5c48d1387a
commit
3a7c83c2d9
|
@ -116,9 +116,11 @@ struct Pane: View {
|
||||||
destRibbon: selectedRibbon[0],
|
destRibbon: selectedRibbon[0],
|
||||||
appDatabase: appDatabase,
|
appDatabase: appDatabase,
|
||||||
paneConnector: $paneConnector,
|
paneConnector: $paneConnector,
|
||||||
|
refresh: $refresh,
|
||||||
loading: true)
|
loading: true)
|
||||||
}
|
}
|
||||||
.onChange(of: paneConnector.refresh) { _ in
|
.onChange(of: paneConnector.refresh) { _ in
|
||||||
|
print("on change")
|
||||||
|
|
||||||
Task {
|
Task {
|
||||||
DispatchQueue.main.async {
|
DispatchQueue.main.async {
|
||||||
|
|
|
@ -43,6 +43,7 @@ func goToRibbon(selectedRibbon: Ribbon,
|
||||||
destRibbon: Ribbon,
|
destRibbon: Ribbon,
|
||||||
appDatabase: AppDatabase,
|
appDatabase: AppDatabase,
|
||||||
paneConnector: Binding<PaneConnector>,
|
paneConnector: Binding<PaneConnector>,
|
||||||
|
refresh: Binding<Bool>,
|
||||||
loading: Bool)
|
loading: Bool)
|
||||||
{
|
{
|
||||||
Task {
|
Task {
|
||||||
|
@ -109,6 +110,8 @@ struct RibbonCrown: View {
|
||||||
@Query(SelectedRibbonRequest()) private var sr: [Ribbon]
|
@Query(SelectedRibbonRequest()) private var sr: [Ribbon]
|
||||||
|
|
||||||
@State var saveOffset = CGFloat()
|
@State var saveOffset = CGFloat()
|
||||||
|
@Binding var refresh: Bool
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
ZStack {
|
ZStack {
|
||||||
MyIcon().frame(
|
MyIcon().frame(
|
||||||
|
@ -140,6 +143,7 @@ struct RibbonCrown: View {
|
||||||
destRibbon: ribbon,
|
destRibbon: ribbon,
|
||||||
appDatabase: appDatabase,
|
appDatabase: appDatabase,
|
||||||
paneConnector: $paneConnector,
|
paneConnector: $paneConnector,
|
||||||
|
refresh: $refresh,
|
||||||
loading: false)
|
loading: false)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -268,7 +272,8 @@ struct ContentView: View {
|
||||||
RibbonCrown(ribbon: ribbon,
|
RibbonCrown(ribbon: ribbon,
|
||||||
paneConnector: $paneConnector,
|
paneConnector: $paneConnector,
|
||||||
draggedRibbon: draggedRibbon,
|
draggedRibbon: draggedRibbon,
|
||||||
isDragging: isDragging)
|
isDragging: isDragging,
|
||||||
|
refresh: $refresh)
|
||||||
.onDrag {
|
.onDrag {
|
||||||
self.draggedRibbon = ribbon
|
self.draggedRibbon = ribbon
|
||||||
return NSItemProvider()
|
return NSItemProvider()
|
||||||
|
|
Loading…
Reference in New Issue