Rename fun in Callback for clarity.

This commit is contained in:
Benoit Marty 2025-10-29 10:30:30 +01:00 committed by Benoit Marty
parent 45b5783b23
commit 09a18ad7ca
104 changed files with 658 additions and 664 deletions

View file

@ -64,7 +64,7 @@ class BugReportFlowNode(
this@BugReportFlowNode.onDone()
}
override fun onViewLogs(basePath: String) {
override fun navigateToViewLogs(basePath: String) {
backstack.push(NavTarget.ViewLogs(rootPath = basePath))
}
}

View file

@ -32,11 +32,11 @@ class BugReportNode(
) : Node(buildContext, plugins = plugins) {
interface Callback : Plugin {
fun onDone()
fun onViewLogs(basePath: String)
fun navigateToViewLogs(basePath: String)
}
private fun onViewLogs(basePath: String) {
plugins<Callback>().forEach { it.onViewLogs(basePath) }
plugins<Callback>().forEach { it.navigateToViewLogs(basePath) }
}
private fun onDone() {