Skip to content

Commit cf775b7

Browse files
committed
PairDialog: make passkey match pincode
1 parent b825c76 commit cf775b7

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/PairDialog.vala

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public class PairDialog : Granite.MessageDialog {
5151
buttons: Gtk.ButtonsType.CANCEL,
5252
object_path: object_path,
5353
passkey: "%u".printf (passkey),
54-
primary_text: _("Confirm Bluetooth Passkey"),
54+
primary_text: _("Enter Bluetooth Passkey"),
5555
transient_for: main_window
5656
);
5757
}
@@ -99,12 +99,6 @@ public class PairDialog : Granite.MessageDialog {
9999
confirm_button.get_style_context ().add_class (Granite.STYLE_CLASS_SUGGESTED_ACTION);
100100
break;
101101
case AuthType.DISPLAY_PASSKEY:
102-
badge_icon = new ThemedIcon ("dialog-password");
103-
secondary_text = _("%s” would like to pair with this device. Make sure the code displayed on “%s” matches the one below.").printf (device_name, device_name);
104-
105-
var confirm_button = add_button (_("Pair"), Gtk.ResponseType.ACCEPT);
106-
confirm_button.get_style_context ().add_class (Granite.STYLE_CLASS_SUGGESTED_ACTION);
107-
break;
108102
case AuthType.DISPLAY_PIN_CODE:
109103
badge_icon = new ThemedIcon ("dialog-password");
110104
secondary_text = _("Type the code displayed below on “%s”, followed by Enter.").printf (device_name);

0 commit comments

Comments
 (0)