was more or less hoping for a cleaner way to do th...
# getting-started
c
was more or less hoping for a cleaner way to do this
Copy code
override fun canRun(s: String, runProfile: RunProfile): Boolean {
    val runConfig = runProfile as? MayaCharmRunConfiguration ?: return false

    try {
        runConfig.checkConfiguration()
    } catch (e: RuntimeConfigurationException) {
        return false
    }

    return s == "Debug"
}