Changeset 9232
- Timestamp:
- Oct 2, 2009, 9:51:09 PM (13 years ago)
- Location:
- trunk/macosx
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/Controller.m
r9197 r9232 184 184 [alert setInformativeText: NSLocalizedString(@"There is already a copy of Transmission running. " 185 185 "This copy cannot be opened until that instance is quit.", "Transmission already running alert -> message")]; 186 [alert setAlertStyle: NS WarningAlertStyle];186 [alert setAlertStyle: NSCriticalAlertStyle]; 187 187 188 188 [alert runModal]; … … 203 203 ExpandedPathToIconTransformer * iconTransformer = [[[ExpandedPathToIconTransformer alloc] init] autorelease]; 204 204 [NSValueTransformer setValueTransformer: iconTransformer forName: @"ExpandedPathToIconTransformer"]; 205 206 //cover our asses 207 if (YES || [[NSUserDefaults standardUserDefaults] boolForKey: @"WarningLegal"]) 208 { 209 NSAlert * alert = [[NSAlert alloc] init]; 210 [alert addButtonWithTitle: NSLocalizedString(@"I Accept", "Legal alert -> button")]; 211 [alert addButtonWithTitle: NSLocalizedString(@"Quit", "Legal alert -> button")]; 212 [alert setMessageText: NSLocalizedString(@"Hear ye, hear ye!", "Legal alert -> title")]; 213 [alert setInformativeText: [NSString stringWithFormat: @"%@\n\n%@", 214 NSLocalizedString(@"Transmission is a file-sharing program. When you add a torrent for download, all of its data will" 215 " also be made available to others by means of upload." 216 " And of course, any content you do choose to share is your sole responsibility.", "Legal alert -> message"), 217 NSLocalizedString(@"You probably knew this already, so we won't tell you again.", "Legal alert -> message")]]; 218 [alert setAlertStyle: NSInformationalAlertStyle]; 219 220 if ([alert runModal] == NSAlertSecondButtonReturn) 221 exit(0); 222 [alert release]; 223 224 [[NSUserDefaults standardUserDefaults] setBool: NO forKey: @"WarningLegal"]; 225 } 205 226 } 206 227 … … 1901 1922 nameDescriptor, nil]; 1902 1923 } 1924 #warning broken 1903 1925 else if ([sortType isEqualToString: SORT_TRACKER]) 1904 1926 { -
trunk/macosx/Defaults.plist
r9126 r9232 191 191 <key>WarningInvalidOpen</key> 192 192 <true/> 193 <key>WarningLegal</key> 194 <true/> 193 195 <key>WarningRemainingSpace</key> 194 196 <true/> -
trunk/macosx/PrefsController.m
r9151 r9232 682 682 [fDefaults removeObjectForKey: @"WarningInvalidOpen"]; 683 683 [fDefaults removeObjectForKey: @"WarningDonate"]; 684 //[fDefaults removeObjectForKey: @"WarningLegal"]; 684 685 } 685 686
Note: See TracChangeset
for help on using the changeset viewer.