Merge pull request #3095 from ssuppe/dev

Include profile name in profile delete confirmation dialog
This commit is contained in:
Milos Kozak 2023-12-05 12:40:41 +01:00 committed by GitHub
commit 0beaacbe31
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -300,7 +300,7 @@ class ProfileFragment : DaggerFragment() {
binding.profileRemove.setOnClickListener { binding.profileRemove.setOnClickListener {
activity?.let { activity -> activity?.let { activity ->
OKDialog.showConfirmation(activity, rh.gs(R.string.delete_current_profile), { OKDialog.showConfirmation(activity, rh.gs(R.string.delete_current_profile, profilePlugin.currentProfile()?.name), {
uel.log( uel.log(
UserEntry.Action.PROFILE_REMOVED, UserEntry.Sources.LocalProfile, ValueWithUnit.SimpleString( UserEntry.Action.PROFILE_REMOVED, UserEntry.Sources.LocalProfile, ValueWithUnit.SimpleString(
profilePlugin.currentProfile()?.name profilePlugin.currentProfile()?.name

View file

@ -149,7 +149,7 @@
<string name="a11y_add_new_to_list">add new to list</string> <string name="a11y_add_new_to_list">add new to list</string>
<string name="do_you_want_switch_profile">Do you want to switch profile and discard changes made to current profile?</string> <string name="do_you_want_switch_profile">Do you want to switch profile and discard changes made to current profile?</string>
<string name="save_or_reset_changes_first">Save or reset current changes first</string> <string name="save_or_reset_changes_first">Save or reset current changes first</string>
<string name="delete_current_profile">Delete current profile?</string> <string name="delete_current_profile">Delete profile \"%1$s\"?</string>
<string name="units_colon">Units:</string> <string name="units_colon">Units:</string>
<string name="missing_profile_name">Missing profile name</string> <string name="missing_profile_name">Missing profile name</string>
<string name="error_in_ic_values">Error in IC values</string> <string name="error_in_ic_values">Error in IC values</string>