Skip to content

Commit afe72a7

Browse files
Merge pull request #47 from vineetchoudhary/development
Fixes
2 parents b5e13ee + ccda7b8 commit afe72a7

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

AppBox/Base.lproj/Main.storyboard

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,11 +220,11 @@
220220
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
221221
<subviews>
222222
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="Lbq-OO-sRU">
223-
<rect key="frame" x="8" y="178" width="457" height="21"/>
223+
<rect key="frame" x="8" y="178" width="191" height="21"/>
224224
<constraints>
225225
<constraint firstAttribute="height" constant="21" id="nld-pk-Cgs"/>
226226
</constraints>
227-
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Archive and Upload IPA (Beta, Req- Xcode 8+ as Default)" placeholderString="" id="vjW-hx-Zky">
227+
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Archive and Upload IPA" placeholderString="" id="vjW-hx-Zky">
228228
<font key="font" metaFont="systemSemibold" size="17"/>
229229
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
230230
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>

AppBox/Common/Common.m

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,16 @@ + (void)checkDropboxKeys{
5656
if ([abDbAppkey isEqualToString: abEmptyString] && [abDbScreatkey isEqualToString: abEmptyString]){
5757
NSAlert *alert = [[NSAlert alloc] init];
5858
[alert setMessageText: @"Dropbox app key and screat not found."];
59-
[alert setInformativeText:@"Please input your dropbox app key and screat in \"AppBox>Common>DropboxKeys.h\" header file.\n\nAlso, please comply with the license."];
59+
[alert setInformativeText:@"Please input your dropbox app key and screat in \"AppBox>Common>DropboxKeys.h\" header file. Or you can download the executable file of appbox by clicking button Download Appbox. \n\nAlso, please comply with the license."];
6060
[alert setAlertStyle:NSInformationalAlertStyle];
61+
[alert addButtonWithTitle:@"Download Appbox"];
6162
[alert addButtonWithTitle:@"Read License"];
6263
[alert addButtonWithTitle:@"OK"];
63-
if ([alert runModal] == NSAlertFirstButtonReturn){
64+
NSModalResponse response = [alert runModal];
65+
if (response == NSAlertFirstButtonReturn){
66+
[[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:abDefaultLatestDownloadURL]];
67+
}
68+
if (response == NSAlertSecondButtonReturn){
6469
[[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:abLicenseURL]];
6570
}
6671
}

AppBox/ViewController/HomeViewController/HomeViewController.m

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,12 @@ - (IBAction)sendMailMacOptionValueChanged:(NSButton *)sender {
135135

136136
//email id text field
137137
- (IBAction)textFieldMailValueChanged:(NSTextField *)sender {
138+
[sender setStringValue: [sender.stringValue stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]]];
138139
[buttonShutdownMac setEnabled:[MailHandler isValidEmail:sender.stringValue]];
139140
if ([MailHandler isValidEmail:sender.stringValue]){
140141
[UserData setUserEmail:sender.stringValue];
141-
}else{
142-
[buttonShutdownMac setState:NSOffState];
142+
}else if (sender.stringValue.length > 0){
143+
[Common showAlertWithTitle:@"Invalid email address" andMessage:@"The email address entered was invalid. Please reenter it (Example: [email protected])."];
143144
}
144145
}
145146

0 commit comments

Comments
 (0)