Changeset 2466


Ignore:
Timestamp:
Jul 23, 2007, 3:33:04 PM (15 years ago)
Author:
charles
Message:

cleanup preferences file keys

Location:
trunk/wx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wx/torrent-list.cc

    r2465 r2466  
    9898    int_v getTorrentColumns( wxConfig * config )
    9999    {
    100         const wxString key = _T("TorrentListColumns");
     100        const wxString key = _T("torrent-list-columns");
    101101        wxString columnStr;
    102         if( !config->Read( key, &columnStr ) )
    103             columnStr = _T("name|download-speed|upload-speed|eta|peers|size|done|status|seeds");
     102        if( !config->Read( key, &columnStr, _T("name|download-speed|upload-speed|eta|peers|size|done|status|seeds") ) )
     103            config->Write( key, columnStr );
    104104
    105105        int_v cols;
     
    185185    if( descending )
    186186        prevSortCol = -prevSortCol;
    187     std::cerr << __FILE__ << ':' << __LINE__ << " sort col is " << prevSortCol << std::endl;
    188187    Rebuild ();
    189188}
     
    529528{
    530529    myTorrents.insert( myTorrents.end(), add.begin(), add.end() );
    531 std::cerr << " myTorrents.size() " << myTorrents.size() << std::endl;
    532530    Repopulate ();
    533531}
  • trunk/wx/xmission.cc

    r2465 r2466  
    8484void MyFrame :: OnOpen( wxCommandEvent& event )
    8585{
    86     const wxString key = _T("LastDirectory");
     86    const wxString key = _T("prev-directory");
    8787    wxString directory;
    8888    myConfig->Read( key, &directory );
Note: See TracChangeset for help on using the changeset viewer.