Autotune fix load result during calculation running

This commit is contained in:
Philoul 2022-06-08 08:00:01 +02:00
parent 5b8dcedc4b
commit a9b424b2f3

View file

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