Skip to content

Commit

Permalink
fix: Failed cast when initializing addons
Browse files Browse the repository at this point in the history
  • Loading branch information
0ffz committed Oct 26, 2024
1 parent c5ee414 commit c4f6958
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ class MutableAddons {
}

fun init(addon: AddonToConfig<*>, setup: GearySetup) {
val geary = Geary(setup.application, setup.logger.withTag(addon.addon.name))
instances[addon.addon.name] = (addon.addon.onInstall as Geary.(Any?) -> Any).invoke(geary, addon.config)
instances[addon.addon.name] = (addon.addon.onInstall as GearySetup.(Any?) -> Any).invoke(setup, addon.config)
}

fun initAll(setup: GearySetup) {
Expand Down

0 comments on commit c4f6958

Please sign in to comment.