File tree Expand file tree Collapse file tree 1 file changed +1
-12
lines changed
osx/src/main/java/cloud/katta/controller Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -34,9 +34,6 @@ public class FirstLoginController extends AlertController {
3434 @ Outlet
3535 private final NSTextField accountKeyField = NSTextField .textFieldWithString (StringUtils .EMPTY );
3636
37- @ Outlet
38- private final NSTextField accountKeyConfirmField = NSSecureTextField .textFieldWithString (StringUtils .EMPTY );
39-
4037 @ Outlet
4138 private final NSTextField deviceNameField = NSTextField .textFieldWithString (StringUtils .EMPTY );
4239
@@ -73,12 +70,6 @@ public NSView getAccessoryView(final NSAlert alert) {
7370 this .addAccessorySubview (accessoryView , accountKeyField );
7471 }
7572
76- {
77- accountKeyConfirmField .cell ().setPlaceholderString (LocaleFactory .localizedString ("Confirm Account Key" , "Hub" ));
78- accountKeyConfirmField .setToolTip (LocaleFactory .localizedString ("I stored my Account Key securely." , "Hub" ));
79- this .addAccessorySubview (accessoryView , accountKeyConfirmField );
80- }
81-
8273 {
8374 this .updateField (deviceNameField , accountKeyAndDeviceName .deviceName ());
8475 deviceNameField .cell ().setPlaceholderString (LocaleFactory .localizedString ("Device Name" , "Hub" ));
@@ -102,9 +93,7 @@ protected void focus(final NSAlert alert) {
10293 @ Override
10394 public boolean validate (final int option ) {
10495 if (SheetCallback .DEFAULT_OPTION == option ) {
105- if (StringUtils .equals (accountKeyField .stringValue (), accountKeyConfirmField .stringValue ())) {
106- return StringUtils .isNotBlank (deviceNameField .stringValue ());
107- }
96+ return StringUtils .isNotBlank (deviceNameField .stringValue ());
10897 }
10998 return true ;
11099 }
You can’t perform that action at this time.
0 commit comments