Skip to content
This repository has been archived by the owner on Jan 3, 2019. It is now read-only.

Commit

Permalink
[#253] fixed send window focus again
Browse files Browse the repository at this point in the history
  • Loading branch information
mackuba committed May 14, 2014
1 parent 9754900 commit 328a1be
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Hive/Controllers/HISendBitcoinsWindowController.m
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,10 @@ - (void)windowDidLoad {

- (void)showWindow:(id)sender {
[super showWindow:sender];
[self focusAppropriateField];
}

- (void)focusAppropriateField {
if (!_lockedAddress) {
[self.window makeFirstResponder:self.nameLabel];
} else if (!_amount) {
Expand Down Expand Up @@ -321,6 +324,8 @@ - (void)showPaymentRequest:(int)sessionId details:(NSDictionary *)data {
if (memo.length > 0) {
[self setDetailsText:memo];
}

[self focusAppropriateField];
}

- (void)showPaymentRequestLoadingBox {
Expand Down

0 comments on commit 328a1be

Please sign in to comment.