mirror of
https://github.com/keymanapp/keyman.git
synced 2026-11-03 09:37:47 +00:00
fix(ios): blocks Sentry event for known no-image case
This commit is contained in:
parent
a82ed2123e
commit
09db46c71e
1 changed files with 7 additions and 0 deletions
|
|
@ -61,6 +61,13 @@ class KeyboardViewController: InputViewController {
|
|||
}
|
||||
|
||||
func setupTopBarImage(size: CGSize) {
|
||||
// We override the height in getTopBarImage, but not width.
|
||||
// If width is 0, we return null from that function; this'll
|
||||
// trigger the guard below.
|
||||
if size.width == 0 {
|
||||
return
|
||||
}
|
||||
|
||||
let imgPath = getTopBarImage(size: size)
|
||||
guard let path = imgPath else {
|
||||
SentryManager.captureAndLog("No image specified for the image banner!")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue