show prefs window in Window menu / dock menu

This commit is contained in:
Mitchell Livingston 2006-08-08 22:23:33 +00:00
parent eb7edc5f28
commit 5ba17385e7
5 changed files with 8 additions and 9 deletions

View File

@ -123,6 +123,7 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy
[fWindow setDelegate: self];
[fWindow makeFirstResponder: fTableView];
[fWindow setExcludedFromWindowsMenu: YES];
//set table size
if ([fDefaults boolForKey: @"SmallView"])
@ -1223,11 +1224,9 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy
return;
NSCalendarDate * currentDate = [NSCalendarDate calendarDate];
//do nothing if not within first few seconds of hour
if ([currentDate minuteOfHour] > 0 || [currentDate secondOfMinute] >= AUTO_SPEED_LIMIT_SECONDS)
return;
if ([currentDate hourOfDay] == (fSpeedLimitEnabled ? offHour : onHour))
//toggle if within first few seconds of hour
if ([currentDate minuteOfHour] == 0 && [currentDate secondOfMinute] < AUTO_SPEED_LIMIT_SECONDS
&& [currentDate hourOfDay] == (fSpeedLimitEnabled ? offHour : onHour))
{
[self toggleSpeedLimit: nil];

View File

@ -13,7 +13,7 @@
<key>1603</key>
<string>337 545 477 67 0 0 1152 842 </string>
<key>29</key>
<string>227 675 451 44 0 0 1152 842 </string>
<string>104 684 520 44 0 0 1152 842 </string>
<key>456</key>
<string>396 374 216 206 0 0 1152 842 </string>
<key>581</key>
@ -31,8 +31,8 @@
<integer>3</integer>
<key>IBOpenObjects</key>
<array>
<integer>29</integer>
<integer>21</integer>
<integer>29</integer>
</array>
<key>IBSystem Version</key>
<string>8J135</string>

Binary file not shown.

View File

@ -182,7 +182,7 @@
[fDataLocationField setToolTip: [torrent dataLocation]];
[fDateStartedField setObjectValue: [torrent date]];
//don't allow empty strings to be selected
//allow these strings to be selected
[fTrackerField setSelectable: YES];
[fAnnounceField setSelectable: YES];
[fHashField setSelectable: YES];

View File

@ -35,7 +35,7 @@
- (void) close
{
[self makeFirstResponder: nil]; //essentially saves changes on window close
[self makeFirstResponder: nil]; //essentially saves pref changes on window close
[super close];
}