diff --git a/owncloud_sync_qt/SyncGlobal.h b/owncloud_sync_qt/SyncGlobal.h index 5c56c5f57..40c20920f 100644 --- a/owncloud_sync_qt/SyncGlobal.h +++ b/owncloud_sync_qt/SyncGlobal.h @@ -22,7 +22,7 @@ #include #include -#define _OCS_VERSION "0.5.2" +#define _OCS_VERSION "0.5.3" #define _OCS_DB_VERSION 2 /*! \brief An internal OwnCloud Sync Qt debugging class. diff --git a/owncloud_sync_qt/SyncWindow.cpp b/owncloud_sync_qt/SyncWindow.cpp index abd772c3e..79822d29b 100644 --- a/owncloud_sync_qt/SyncWindow.cpp +++ b/owncloud_sync_qt/SyncWindow.cpp @@ -716,6 +716,7 @@ void SyncWindow::saveApplicationSettings() settings.setValue("hide_when_closed", ui->actionClose_Button_Hides_Window->isChecked()); settings.setValue("display_debug",mDisplayDebug); + settings.setValue("last_run_version",_OCS_VERSION); settings.endGroup(); settings.beginGroup("DisabledIncludedFilters"); for(int i = 0; i < mIncludedFilters.size(); i++ ) { @@ -738,6 +739,11 @@ void SyncWindow::loadApplicationSettings() settings.value("hide_when_closed").toBool()); mDisplayDebug = settings.value("display_debug").toBool(); ui->actionDisplay_Debug_Messages->setChecked(mDisplayDebug); + QString lastRunVersion = settings.value("last_run_version").toString(); + if( lastRunVersion != _OCS_VERSION ) { // Need to display what's new + // message + displayWhatsNew(); + } settings.endGroup(); settings.beginGroup("DisabledIncludedFilters"); for(int i = 0; i < mIncludedFilters.size(); i++ ) { @@ -1024,3 +1030,14 @@ void SyncWindow::exportGlobalFilters( bool isDefault) out.flush(); file.close(); } + +void SyncWindow::displayWhatsNew() +{ + QMessageBox::information(this,tr("What's new?"), + tr("
WARNING!!

This software is still in beta. It may eat your files!!!

" + "
New features:

" + "- Soft Pause/Resume of synchronization
" + "- Global filters
" + "- Selection of common filters
"), + QMessageBox::Ok); +} diff --git a/owncloud_sync_qt/SyncWindow.h b/owncloud_sync_qt/SyncWindow.h index 4476c1199..e664fe421 100644 --- a/owncloud_sync_qt/SyncWindow.h +++ b/owncloud_sync_qt/SyncWindow.h @@ -111,6 +111,7 @@ private: void loadApplicationSettings(); void deleteAccount(); void updateSharedFilterList(); + void displayWhatsNew(); void listGlobalFilters(); void importGlobalFilters(bool isDefault = false); void exportGlobalFilters(bool isDefault = false);