forked from shadowfacts/Tusker
parent
e9727ac2c5
commit
e8305184af
|
@ -77,7 +77,11 @@ struct TipJarView: View {
|
|||
}
|
||||
}
|
||||
.onPreferenceChange(ButtonWidthKey.self) { newValue in
|
||||
self.buttonWidth = newValue
|
||||
if let buttonWidth {
|
||||
self.buttonWidth = max(buttonWidth, newValue)
|
||||
} else {
|
||||
self.buttonWidth = newValue
|
||||
}
|
||||
}
|
||||
|
||||
if let total = getTotalTips(), total > 0 {
|
||||
|
|
Loading…
Reference in New Issue