Autotune fix load result during calculation running

This commit is contained in:
Philoul 2022-06-08 08:00:01 +02:00
parent 9be6424c25
commit cee29b4116

View file

@ -281,8 +281,10 @@ class AutotuneFragment : DaggerFragment() {
}
binding.tuneLastrun.setOnClickListener {
autotunePlugin.loadLastRun()
updateGui()
if (!autotunePlugin.calculationRunning) {
autotunePlugin.loadLastRun()
updateGui()
}
}
binding.tuneLastrun.paintFlags = binding.tuneLastrun.paintFlags or Paint.UNDERLINE_TEXT_FLAG
}