Changeset 13724


Ignore:
Timestamp:
Dec 30, 2012, 10:51:55 PM (8 years ago)
Author:
jordan
Message:

(trunk, qt) #5060 'start minimized to tray option' -- added.

Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/quark.c

    r13683 r13724  
    331331  { "speed-units", 11 },
    332332  { "start-added-torrents", 20 },
     333  { "start-minimized", 15 },
    333334  { "startDate", 9 },
    334335  { "status", 6 },
  • trunk/libtransmission/quark.h

    r13683 r13724  
    341341  TR_KEY_speed_units,
    342342  TR_KEY_start_added_torrents,
     343  TR_KEY_start_minimized,
    343344  TR_KEY_startDate,
    344345  TR_KEY_status,
  • trunk/qt/app.cc

    r13722 r13724  
    159159    if( ( host != 0 ) || ( port != 0 ) || ( username != 0 ) || ( password != 0 ) )
    160160        myPrefs->set( Prefs::SESSION_IS_REMOTE, true );
     161    if ( myPrefs->getBool( Prefs::START_MINIMIZED) )
     162        minimized = true;
     163
     164    // start as minimized only if the system tray present
     165    if ( !myPrefs->getBool( Prefs::SHOW_TRAY_ICON ) )
     166      minimized = false;
    161167
    162168    mySession = new Session( configDir, *myPrefs );
  • trunk/qt/prefs-dialog.cc

    r13295 r13724  
    301301
    302302    hig->addWideControl( checkBoxNew( tr( "Show Transmission icon in the &notification area" ), Prefs::SHOW_TRAY_ICON ) );
     303    hig->addWideControl( checkBoxNew( tr( "Start &minimized in notification area" ), Prefs::START_MINIMIZED ) );
    303304    hig->addWideControl( checkBoxNew( tr( "Show &popup notifications" ), Prefs::SHOW_DESKTOP_NOTIFICATION ) );
    304305
  • trunk/qt/prefs.cc

    r13686 r13724  
    3838  { DIR_WATCH_ENABLED, TR_KEY_watch_dir_enabled, QVariant::Bool },
    3939  { SHOW_TRAY_ICON, TR_KEY_show_notification_area_icon, QVariant::Bool },
     40  { START_MINIMIZED, TR_KEY_start_minimized, QVariant::Bool },
    4041  { SHOW_DESKTOP_NOTIFICATION, TR_KEY_show_desktop_notification, QVariant::Bool },
    4142  { ASKQUIT, TR_KEY_prompt_before_exit, QVariant::Bool },
     
    275276Prefs :: initDefaults (tr_variant * d)
    276277{
     278  tr_variantDictReserve (d, 35);
    277279  tr_variantDictAddBool (d, TR_KEY_blocklist_updates_enabled, true);
    278280  tr_variantDictAddBool (d, TR_KEY_compact_view, false);
     
    286288  tr_variantDictAddBool (d, TR_KEY_show_filterbar, true);
    287289  tr_variantDictAddBool (d, TR_KEY_show_notification_area_icon, false);
     290  tr_variantDictAddBool (d, TR_KEY_start_minimized, false);
    288291  tr_variantDictAddBool (d, TR_KEY_show_options_window, true);
    289292  tr_variantDictAddBool (d, TR_KEY_show_statusbar, true);
  • trunk/qt/prefs.h

    r13683 r13724  
    4444            DIR_WATCH_ENABLED,
    4545            SHOW_TRAY_ICON,
     46            START_MINIMIZED,
    4647            SHOW_DESKTOP_NOTIFICATION,
    4748            ASKQUIT,
Note: See TracChangeset for help on using the changeset viewer.