mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-23 21:46:03 +03:00
Added a What's New message box that also warns users of the beta nature
of the software.
This commit is contained in:
parent
1a63ad67f0
commit
20a24f680e
3 changed files with 19 additions and 1 deletions
|
@ -22,7 +22,7 @@
|
|||
#include <QIODevice>
|
||||
#include <QDebug>
|
||||
|
||||
#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.
|
||||
|
|
|
@ -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("<center><b>WARNING!!</b></center><br />This software is still in beta. It may eat your files!!!<br /><br />"
|
||||
"<center><b>New features</b>:</center><br />"
|
||||
"- Soft Pause/Resume of synchronization<br />"
|
||||
"- Global filters<br />"
|
||||
"- Selection of common filters<br />"),
|
||||
QMessageBox::Ok);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue