Merge pull request #253 from meshtastic/2.0.6_Working_Changes

2.0.6 working changes
This commit is contained in:
Garth Vander Houwen 2022-12-01 08:21:49 -08:00 committed by GitHub
commit b6786d6421
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 4 additions and 18 deletions

View file

@ -29,7 +29,6 @@ struct ChannelMessageList: View {
@State private var deleteMessageId: Int64 = 0
@State private var replyMessageId: Int64 = 0
@State private var sendPositionWithMessage: Bool = false
//@State private var refreshId = UUID()
var body: some View {
NavigationStack {
@ -218,13 +217,11 @@ struct ChannelMessageList: View {
.scrollDismissesKeyboard(.immediately)
.onAppear(perform: {
self.bleManager.context = context
// refreshId = UUID()
if channel.allPrivateMessages.count > 0 {
scrollView.scrollTo(channel.allPrivateMessages.last!.messageId)
}
})
.onChange(of: channel.allPrivateMessages, perform: { messages in
// refreshId = UUID()
if channel.allPrivateMessages.count > 0 {
scrollView.scrollTo(channel.allPrivateMessages.last!.messageId)
}
@ -337,7 +334,6 @@ struct ChannelMessageList: View {
}
.padding(.all, 15)
}
.navigationViewStyle(.stack)
.navigationBarTitleDisplayMode(.inline)
.toolbar {
ToolbarItem(placement: .principal) {

View file

@ -89,7 +89,10 @@ struct Contacts: View {
do {
try context.save()
self.context.refresh(channel, mergeChanges: true)
// Would rather not do this but the merge changes on
// A single object is only working on mac GVH
context.refreshAllObjects()
//context.refresh(channel, mergeChanges: true)
} catch {
context.rollback()
print("💥 Save Channel Mute Error")

View file

@ -329,7 +329,6 @@ struct UserMessageList: View {
}
.padding(.all, 15)
}
.navigationViewStyle(.stack)
.navigationBarTitleDisplayMode(.inline)
.toolbar {
ToolbarItem(placement: .principal) {

View file

@ -151,6 +151,5 @@ struct BluetoothConfig: View {
if newFixedPin != String(node!.bluetoothConfig!.fixedPin) { hasChanges = true }
}
}
.navigationViewStyle(StackNavigationViewStyle())
}
}

View file

@ -192,6 +192,5 @@ struct DeviceConfig: View {
if newDebugLog != node!.deviceConfig!.debugLogEnabled { hasChanges = true }
}
}
.navigationViewStyle(StackNavigationViewStyle())
}
}

View file

@ -161,6 +161,5 @@ struct DisplayConfig: View {
if newFlipScreen != node!.displayConfig!.flipScreen { hasChanges = true }
}
}
.navigationViewStyle(StackNavigationViewStyle())
}
}

View file

@ -127,6 +127,5 @@ struct LoRaConfig: View {
if newHopLimit != node!.loRaConfig!.hopLimit { hasChanges = true }
}
}
.navigationViewStyle(StackNavigationViewStyle())
}
}

View file

@ -361,7 +361,6 @@ struct CannedMessagesConfig: View {
if newKeyPress != node!.cannedMessageConfig!.inputbrokerEventPress { hasChanges = true }
}
}
.navigationViewStyle(StackNavigationViewStyle())
}
}
}

View file

@ -203,7 +203,6 @@ struct ExternalNotificationConfig: View {
if newUsePWM != node!.externalNotificationConfig!.usePWM { hasChanges = true }
}
}
.navigationViewStyle(StackNavigationViewStyle())
}
}
}

View file

@ -212,6 +212,5 @@ struct MQTTConfig: View {
if newJsonEnabled != node!.mqttConfig!.jsonEnabled { hasChanges = true }
}
}
.navigationViewStyle(StackNavigationViewStyle())
}
}

View file

@ -141,7 +141,6 @@ struct RangeTestConfig: View {
if newSender != node!.rangeTestConfig!.sender { hasChanges = true }
}
}
.navigationViewStyle(StackNavigationViewStyle())
}
}
}

View file

@ -217,7 +217,6 @@ struct SerialConfig: View {
if newMode != node!.serialConfig!.mode { hasChanges = true }
}
}
.navigationViewStyle(StackNavigationViewStyle())
}
}
}

View file

@ -193,7 +193,6 @@ struct TelemetryConfig: View {
if newEnvDisplayF != node!.telemetryConfig!.environmentDisplayFahrenheit { hasChanges = true }
}
}
.navigationViewStyle(StackNavigationViewStyle())
}
}
}

View file

@ -168,6 +168,5 @@ struct NetworkConfig: View {
if newEthEnabled != node!.networkConfig!.ethEnabled { hasChanges = true }
}
}
.navigationViewStyle(StackNavigationViewStyle())
}
}

View file

@ -119,6 +119,5 @@ struct UserConfig: View {
if newLong != node?.user!.longName { hasChanges = true }
}
}
.navigationViewStyle(StackNavigationViewStyle())
}
}