Skip to content

Commit

Permalink
Open builder url
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeswang committed Jan 16, 2015
1 parent 070f25b commit 4438514
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ - (void)windowDidLoad {
}

- (IBAction)openBuilder:(id)sender {

[[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@"http://www.hearthstone.com.cn/cards/builder/"]];
}

- (IBAction)openSetting:(id)sender {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,22 +32,21 @@ - (void)viewDidLoad {
}


- (IBAction)cancel:(id)sender {
- (IBAction)cancel:(id)sender {
NSWindow *window = [[self view] window];
[window orderOut:window];
}

- (IBAction)update:(id)sender {
if ([[self.inputField stringValue] length] == 0) {
NSLog(@"Should input builder Id");
NSLog(@"Please input builder Id");
}
else {
[self.indicator setHidden:NO];
[self.indicator startAnimation:self];
[self.status setHidden:NO];
[self.status setStringValue:@"querying"];


[NetEaseCardBuilderImporter importDockerWithId:[self.inputField stringValue] success:^(NSArray *cards) {
[self.indicator setHidden:YES];
[self.status setStringValue:@"success"];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ + (void)importDockerWithId:(NSString*)dockerId
cardString = [[content attributes] objectForKey:@"value"];
}
else {
fail(@"Wrong build Id");
fail(@"Wrong Builder Id");
return;
}

Expand Down
2 changes: 1 addition & 1 deletion hearthstone-tracker-osx

0 comments on commit 4438514

Please sign in to comment.