Changeset 12001


Ignore:
Timestamp:
07/25/10 18:19:15 (19 months ago)
Author:
adamk
Message:

Moved the installation survey into the ::Nth subsystem.
Nth logic now triggers one second after startup.

Location:
trunk/Padre
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Padre/Changes

    r12000 r12001  
    6565    - Documentation of Padre::Current (SEWI) 
    6666    - Include only changed files in changed-file-list (SEWI) 
    67     - Added wxwidgets.pod which contains the method documentation of all Wx classes 
    68       (AZAWAWI) 
     67    - Added wxwidgets.pod which contains the method documentation of all Wx 
     68      classes (AZAWAWI) 
    6969    - Padre has wxWidgets method documentation in F2 help search (AZAWAWI) 
    7070    - Added Padre::Wx::Nth to group first/nth-time startup magic (ADAMK) 
    71     - Fixed #781 : Unicode should not be used for accessing file system on Win32 (CHORNY) 
     71    - Fixed #781 : Unicode should not be used for accessing file system on 
     72      Win32 (CHORNY) 
     73    - The New Installation Survey now only appears on the third time that 
     74      Padre starts, so it doesn't confuse people with locale issues (ADAMK) 
    7275 
    73760.66 2010.07.01 
  • trunk/Padre/lib/Padre/Wx/Main.pm

    r11996 r12001  
    362362    $manager->alert_new; 
    363363 
    364     unless ( $Padre::Test::VERSION or $config->feedback_done ) { 
    365         require Padre::Wx::Dialog::WhereFrom; 
    366         Padre::Wx::Dialog::WhereFrom->new($self); 
    367     } 
    368  
    369364    # Start the change detection timer 
    370365    my $timer1 = Wx::Timer->new( $self, Padre::Wx::ID_TIMER_FILECHECK ); 
     
    390385        }, 
    391386    ); 
    392     $timer2->Start( 1, 1 ); 
     387    $timer2->Start( 1 * SECONDS, 1 ); 
    393388 
    394389    return; 
     
    399394 
    400395    # Hand off to the nth start system 
    401     require Padre::Wx::Nth; 
    402     Padre::Wx::Nth->nth( $self, $self->config->startup_count ); 
     396    unless ( $Padre::Test::VERSION ) { 
     397        require Padre::Wx::Nth; 
     398        Padre::Wx::Nth->nth( $self, $self->config->startup_count ); 
     399    } 
    403400 
    404401    return 1; 
  • trunk/Padre/lib/Padre/Wx/Nth.pm

    r11996 r12001  
    1111# Even if more than one rule matches, only ever bother the user once. 
    1212sub nth { 
    13     my $class = shift; 
    14     my $main  = shift; 
    15     my $nth   = shift; 
     13    my $class  = shift; 
     14    my $main   = shift; 
     15    my $nth    = shift; 
     16    my $config = $main->config; 
    1617 
    1718    # Is it Padre's birthday 
     
    2728    } 
    2829 
     30    if ( $nth > 2 and not $config->feedback_done ) { 
     31        require Padre::Wx::Dialog::WhereFrom; 
     32        Padre::Wx::Dialog::WhereFrom->new($main); 
     33        return 1; 
     34    } 
     35 
    2936    # Nothing to say 
    3037    return 1; 
Note: See TracChangeset for help on using the changeset viewer.