Changeset 1778 for trunk/dll/notebook.c


Ignore:
Timestamp:
Jun 27, 2014, 12:30:54 AM (11 years ago)
Author:
Steven Levine
Message:

Rework dircnrs.c DirObjWndProc UM_RESCAN to avoid hanging FM/2 Lite when
drive tree hidden. Also speeds up startup if Switch Tree on directory change
not enabled.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/notebook.c

    r1713 r1778  
    178178BOOL fStartMaximized;
    179179BOOL fStartMinimized;
    180 BOOL fSwitchTree;
     180BOOL fSwitchTreeOnDirChg;
    181181BOOL fSwitchTreeExpand;
    182182BOOL fSwitchTreeOnFocus;
     
    13751375    WinCheckButton(hwnd, CFGT_COLLAPSEFIRST, fCollapseFirst);
    13761376    WinCheckButton(hwnd, CFGT_SWITCHTREEONFOCUS, fSwitchTreeOnFocus);
    1377     WinCheckButton(hwnd, CFGT_SWITCHTREE, fSwitchTree);
     1377    WinCheckButton(hwnd, CFGT_SWITCHTREEONDIRCHG, fSwitchTreeOnDirChg);
    13781378    WinCheckButton(hwnd, CFGT_SWITCHTREEEXPAND, fSwitchTreeExpand);
    13791379    WinCheckButton(hwnd, CFGT_SHOWENV, fShowEnv);
     
    14571457      PrfWriteProfileData(fmprof, appname, "SwitchTreeExpand",
    14581458                          &fSwitchTreeExpand, sizeof(BOOL));
    1459       fSwitchTree = WinQueryButtonCheckstate(hwnd, CFGT_SWITCHTREE);
    1460       PrfWriteProfileData(fmprof, appname, "SwitchTree", &fSwitchTree,
     1459      fSwitchTreeOnDirChg = WinQueryButtonCheckstate(hwnd, CFGT_SWITCHTREEONDIRCHG);
     1460      PrfWriteProfileData(fmprof, appname, "SwitchTree", &fSwitchTreeOnDirChg,
    14611461                          sizeof(BOOL));
    14621462      fFollowTree = WinQueryButtonCheckstate(hwnd, CFGT_FOLLOWTREE);
     
    31793179
    31803180    case CFG9_HECTOR:
    3181       fSwitchTree = TRUE;
     3181      fSwitchTreeOnDirChg = TRUE;
    31823182      fSwitchTreeOnFocus = FALSE;
    31833183      fSwitchTreeExpand = TRUE;
     
    32953295
    32963296    case CFG9_DEFAULT:
    3297       fSwitchTree = TRUE;
     3297      fSwitchTreeOnDirChg = TRUE;
    32983298      fSwitchTreeOnFocus = FALSE;
    32993299      fSwitchTreeExpand = TRUE;
     
    34493449      fFollowTree = TRUE;
    34503450      fTopDir = FALSE;
    3451       fSwitchTree = TRUE;
     3451      fSwitchTreeOnDirChg = TRUE;
    34523452      fSwitchTreeOnFocus = FALSE;
    34533453      fSwitchTreeExpand = TRUE;
     
    35133513      fTileBackwards = TRUE;
    35143514      ulCnrType = CCS_MULTIPLESEL;
    3515       fSwitchTree = TRUE;
     3515      fSwitchTreeOnDirChg = TRUE;
    35163516      fSwitchTreeOnFocus = FALSE;
    35173517      fSwitchTreeExpand = TRUE;
     
    35543554        fTileBackwards = FALSE;
    35553555        ulCnrType = CCS_MULTIPLESEL | CCS_EXTENDSEL;
    3556         fSwitchTree = FALSE;
     3556        fSwitchTreeOnDirChg = FALSE;
    35573557        fSwitchTreeOnFocus = FALSE;
    35583558        fSwitchTreeExpand = FALSE;
     
    36113611
    36123612    case CFG9_GREGG:
    3613       fSwitchTree = TRUE;
     3613      fSwitchTreeOnDirChg = TRUE;
    36143614      fSwitchTreeOnFocus = FALSE;
    36153615      fSwitchTreeExpand = TRUE;
Note: See TracChangeset for help on using the changeset viewer.