Ignore:
Timestamp:
Aug 8, 2006, 10:23:33 PM (16 years ago)
Author:
livings124
Message:

show prefs window in Window menu / dock menu

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r742 r745  
    124124   
    125125    [fWindow makeFirstResponder: fTableView];
     126    [fWindow setExcludedFromWindowsMenu: YES];
    126127   
    127128    //set table size
     
    12241225   
    12251226    NSCalendarDate * currentDate = [NSCalendarDate calendarDate];
    1226     //do nothing if not within first few seconds of hour
    1227     if ([currentDate minuteOfHour] > 0 || [currentDate secondOfMinute] >= AUTO_SPEED_LIMIT_SECONDS)
    1228         return;
    1229    
    1230     if ([currentDate hourOfDay] == (fSpeedLimitEnabled ? offHour : onHour))
     1227    //toggle if within first few seconds of hour
     1228    if ([currentDate minuteOfHour] == 0 && [currentDate secondOfMinute] < AUTO_SPEED_LIMIT_SECONDS
     1229            && [currentDate hourOfDay] == (fSpeedLimitEnabled ? offHour : onHour))
    12311230    {
    12321231        [self toggleSpeedLimit: nil];
Note: See TracChangeset for help on using the changeset viewer.