Skip to content

Commit

Permalink
1.5.10b
Browse files Browse the repository at this point in the history
more bug fixes
  • Loading branch information
fabulouspanda committed Jan 24, 2014
1 parent fa2208f commit 3f9e541
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 7 deletions.
3 changes: 3 additions & 0 deletions MacMiner/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,9 @@ - (void)mobilePostThread {
NSString *machineName = [[NSHost currentHost] localizedName];
machineName = [machineName stringByReplacingOccurrencesOfString:@" " withString:@"_"];
machineName = [machineName stringByReplacingOccurrencesOfString:@"-" withString:@"_"];
machineName = [machineName stringByReplacingOccurrencesOfString:@"'" withString:@"_"];
machineName = [machineName stringByReplacingOccurrencesOfString:@"\"" withString:@"_"];
machineName = [machineName stringByReplacingOccurrencesOfString:@"" withString:@"_"];
if (machineName.length <= 1) {
machineName = @"Mac";
}
Expand Down
4 changes: 2 additions & 2 deletions MacMiner/MacMiner-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.5.10</string>
<string>1.5.10b</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1510</string>
<string>1510b</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.utilities</string>
<key>LSMinimumSystemVersion</key>
Expand Down
21 changes: 16 additions & 5 deletions MacMiner/asicMiner.m
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ - (id)initWithCoder:(NSCoder *)aDecoder

[self.asicStartButton setTitle:@"Stop"];
self.asicStartButton.tag = 0;
self.asicAPIOutput.string = @"";
// self.asicAPIOutput.string = @"";
// [self.asicAPIOutput delete:nil];



// If the task is still sitting around from the last run, release it
Expand Down Expand Up @@ -224,7 +226,10 @@ - (IBAction)start:(id)sender
{
[self.asicStartButton setTitle:@"Stop"];
self.asicStartButton.tag = 0;
self.asicAPIOutput.string = @"";

// self.asicAPIOutput.string = @"";
[self.asicAPIOutput delete:nil];



// If the task is still sitting around from the last run, release it
Expand Down Expand Up @@ -334,6 +339,7 @@ - (void)toggleLoopTimerFired:(NSTimer*)timer
{
// NSLog(@"Loop1");


NSString *apiOutputString = self.asicAPIOutput.string;

AppDelegate *appDelegate = (AppDelegate *)[[NSApplication sharedApplication] delegate];
Expand Down Expand Up @@ -370,7 +376,9 @@ - (void)toggleLoopTimerFired:(NSTimer*)timer
appDelegate.mobileMinerStatus = @"NONE";
[self.asicStartButton setTitle:@"Stop"];
self.asicStartButton.tag = 0;
self.asicAPIOutput.string = @"";

// self.asicAPIOutput.string = @"";
[self.asicAPIOutput delete:nil];


// If the task is still sitting around from the last run, release it
Expand Down Expand Up @@ -913,8 +921,11 @@ - (void)taskTwoWrapper:(taskTwoWrapper *)taskTwoWrapper didProduceOutput:(NSStri

if([output hasPrefix:@"R"] && [output hasSuffix:@")"]) {


self.asicAPIOutput.string = output;
// self.asicAPIOutput.string = @"";

[self.asicAPIOutput delete:nil];

self.asicAPIOutput.string = output;

}

Expand Down

0 comments on commit 3f9e541

Please sign in to comment.