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