Changeset 6513 for extensions/pLoader


Ignore:
Timestamp:
Jun 10, 2010, 10:13:00 AM (14 years ago)
Author:
ronosman
Message:

Add a confirmation message before canceling job.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/pLoader/trunk/src/Uploader/GUI/App.pm

    r6431 r6513  
    2121    wxWHITE
    2222    wxICON_EXCLAMATION
     23    wxICON_QUESTION
    2324    wxOK
     25    wxYES
     26    wxYES_NO
     27    wxNO_DEFAULT
    2428    wxICON_ERROR
    2529    wxLANGUAGE_CHINESE_SIMPLIFIED
     
    14451449    my $data : shared = "CANCEL";
    14461450
    1447     $self->resize_thread_queue->insert(0,$data);
     1451    #
     1452    if( $self->resize_thread_queue->pending and wxYES == Wx::MessageBox(
     1453        sprintf(
     1454            "Cancel %s pending job(s) ?",
     1455            $self->resize_thread_queue->pending,
     1456        ),
     1457        "pLoader job processing",
     1458        wxYES_NO|wxNO_DEFAULT| wxICON_QUESTION, )
     1459    ){
     1460        $self->resize_thread_queue->insert(0,$data);
     1461    }
    14481462}
    14491463
Note: See TracChangeset for help on using the changeset viewer.