Merge pull request #1890 from Philoul/Fix/AutotuneCopyName

Fix Profile name in Autotune popup for Copy to local profile
This commit is contained in:
Milos Kozak 2022-07-06 21:58:00 +02:00 committed by GitHub
commit b12f5ae967
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -126,7 +126,7 @@ class AutotuneFragment : DaggerFragment() {
autotunePlugin.tunedProfile?.let { tunedProfile -> autotunePlugin.tunedProfile?.let { tunedProfile ->
showConfirmation(requireContext(), showConfirmation(requireContext(),
rh.gs(R.string.autotune_copy_localprofile_button), rh.gs(R.string.autotune_copy_localprofile_button),
rh.gs(R.string.autotune_copy_local_profile_message) + "\n" + localName + " " + dateUtil.dateAndTimeString(autotunePlugin.lastRun), rh.gs(R.string.autotune_copy_local_profile_message) + "\n" + localName,
Runnable { Runnable {
localProfilePlugin.addProfile(localProfilePlugin.copyFrom(tunedProfile.getProfile(circadian), localName)) localProfilePlugin.addProfile(localProfilePlugin.copyFrom(tunedProfile.getProfile(circadian), localName))
rxBus.send(EventLocalProfileChanged()) rxBus.send(EventLocalProfileChanged())