mirror of
https://github.com/mihonapp/mihon.git
synced 2026-10-16 13:48:09 -07:00
Show invalid filters from extensions instead of crashing
This commit is contained in:
@@ -42,6 +42,7 @@ The format is a modified version of [Keep a Changelog](https://keepachangelog.co
|
|||||||
- Fixed Kitsu login and other requests that send data failing with "Failed to bypass Cloudflare" ([@AntsyLich](https://github.com/AntsyLich))
|
- Fixed Kitsu login and other requests that send data failing with "Failed to bypass Cloudflare" ([@AntsyLich](https://github.com/AntsyLich))
|
||||||
- Fixed tracker start date being off by a day when adding tracking to an entry with read history in some timezones ([@hazptr](https://github.com/hazptr)) ([#4049](https://github.com/mihonapp/mihon/pull/4049))
|
- Fixed tracker start date being off by a day when adding tracking to an entry with read history in some timezones ([@hazptr](https://github.com/hazptr)) ([#4049](https://github.com/mihonapp/mihon/pull/4049))
|
||||||
- Fixed the paged reader crashing when moving to another chapter after a wide page of a neighbouring chapter was split ([@AntsyLich](https://github.com/AntsyLich))
|
- Fixed the paged reader crashing when moving to another chapter after a wide page of a neighbouring chapter was split ([@AntsyLich](https://github.com/AntsyLich))
|
||||||
|
- Fixed a crash when opening the filters of a source with an invalid filter ([@AntsyLich](https://github.com/AntsyLich))
|
||||||
|
|
||||||
## [v0.21.1] - 2026-10-12
|
## [v0.21.1] - 2026-10-12
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|||||||
@@ -169,7 +169,7 @@ private fun Int.toTriStateFilter(): TriState {
|
|||||||
Filter.TriState.STATE_IGNORE -> TriState.DISABLED
|
Filter.TriState.STATE_IGNORE -> TriState.DISABLED
|
||||||
Filter.TriState.STATE_INCLUDE -> TriState.ENABLED_IS
|
Filter.TriState.STATE_INCLUDE -> TriState.ENABLED_IS
|
||||||
Filter.TriState.STATE_EXCLUDE -> TriState.ENABLED_NOT
|
Filter.TriState.STATE_EXCLUDE -> TriState.ENABLED_NOT
|
||||||
else -> throw IllegalStateException("Unknown TriState state: $this")
|
else -> TriState.DISABLED
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -300,7 +300,7 @@ fun SelectItem(
|
|||||||
vertical = SettingsItemsPaddings.Vertical,
|
vertical = SettingsItemsPaddings.Vertical,
|
||||||
),
|
),
|
||||||
label = { Text(text = label) },
|
label = { Text(text = label) },
|
||||||
value = options[selectedIndex].toString(),
|
value = options.getOrNull(selectedIndex)?.toString().orEmpty(),
|
||||||
onValueChange = {},
|
onValueChange = {},
|
||||||
readOnly = true,
|
readOnly = true,
|
||||||
singleLine = true,
|
singleLine = true,
|
||||||
|
|||||||
Reference in New Issue
Block a user