X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fgui%2Fwxwidgets%2Fdialogs%2Fupdatevlc.cpp;h=8f4fd2249c155c0eb9323fc36d079f7167819cfc;hb=617e12f1063d656e686756a0edc22ec49471f1db;hp=88eb5e0eaa984f0b7421558c99299f5b4763a8a5;hpb=48c2ac8c879a83c4f8737b978ca9c3232bb2e70d;p=vlc diff --git a/modules/gui/wxwidgets/dialogs/updatevlc.cpp b/modules/gui/wxwidgets/dialogs/updatevlc.cpp index 88eb5e0eaa..8f4fd2249c 100644 --- a/modules/gui/wxwidgets/dialogs/updatevlc.cpp +++ b/modules/gui/wxwidgets/dialogs/updatevlc.cpp @@ -21,12 +21,13 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. *****************************************************************************/ -#ifdef UPDATE_CHECK /***************************************************************************** * Preamble *****************************************************************************/ #include "updatevlc.hpp" + +#ifdef UPDATE_CHECK #include #include "bitmaps/update_ascii.xpm" @@ -100,7 +101,7 @@ void UpdateVLC::OnClose( wxCloseEvent& WXUNUSED(event) ) void UpdateVLC::OnCheckForUpdate( wxCommandEvent& event ) { - update_Check( p_update ); + update_Check( p_update, NULL, this ); wxBoxSizer *main_sizer = new wxBoxSizer( wxVERTICAL ); DestroyChildren(); @@ -111,10 +112,14 @@ void UpdateVLC::OnCheckForUpdate( wxCommandEvent& event ) + wxU(psz_tmp), i_image );*/ - if( update_CompareReleaseToCurrent( p_update ) == UpdateReleaseStatusNewer ) - main_sizer->Add( new wxStaticText( this, -1, wxU( p_update->release.psz_desc ) + if( update_NeedUpgrade( p_update ) ) + { + update_release_t *p_release = update_GetRelease( p_update ); + assert( p_release ); + main_sizer->Add( new wxStaticText( this, -1, wxU( p_release->psz_desc ) + wxU( "\nYou can download the latest version of VLC at the adress :\n" ) - + wxU( p_update->release.psz_url ) ) ); + + wxU( p_release->psz_url ) ) ); + } else main_sizer->Add( new wxStaticText( this, -1, wxU( _( "\nYou have the latest version of VLC\n" ) ) ) );