Add plugin error message if a plugin is not working

This commit is contained in:
MM20
2023-12-10 17:21:04 +01:00
parent 0c8d3e9218
commit 2070a25c7e
4 changed files with 22 additions and 6 deletions
@@ -17,6 +17,8 @@ sealed class PluginState {
val message: String? = null,
) : PluginState()
data object Error: PluginState()
companion object {
fun fromBundle(bundle: Bundle): PluginState? {
val type = bundle.getString("type") ?: return null