mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
added warning when switching opmode status to non turtle for the first time
This commit is contained in:
parent
1ff1b8960f
commit
7eb5e8e02b
@ -20,6 +20,7 @@
|
|||||||
****************************************************************/
|
****************************************************************/
|
||||||
|
|
||||||
#include <QHBoxLayout>
|
#include <QHBoxLayout>
|
||||||
|
#include <QMessageBox>
|
||||||
#include <QLabel>
|
#include <QLabel>
|
||||||
|
|
||||||
#include "gui/statusbar/OpModeStatus.h"
|
#include "gui/statusbar/OpModeStatus.h"
|
||||||
@ -96,6 +97,19 @@ void OpModeStatus::setOpMode()
|
|||||||
QVariant var = itemData(idx);
|
QVariant var = itemData(idx);
|
||||||
uint32_t opMode = var.toUInt();
|
uint32_t opMode = var.toUInt();
|
||||||
|
|
||||||
|
QString message = tr("<p>Warning: This Operating mode disables the tunneling service. This means you can use distant chat not anonymously download files and the mail service will be slower.</p><p>This state will be saved after restart, so do not forget that you changed it!</p>");
|
||||||
|
|
||||||
|
if(opMode == RS_OPMODE_NOTURTLE && ! Settings->getPageAlreadyDisplayed(QString("RS_OPMODE_NO_TURTLE")))
|
||||||
|
{
|
||||||
|
QMessageBox::warning(NULL,tr("Turtle routing disabled!"),message);
|
||||||
|
Settings->setPageAlreadyDisplayed(QString("RS_OPMODE_NO_TURTLE"),true) ;
|
||||||
|
}
|
||||||
|
if( (opMode == RS_OPMODE_MINIMAL && ! Settings->getPageAlreadyDisplayed(QString("RS_OPMODE_MINIMAL"))))
|
||||||
|
{
|
||||||
|
QMessageBox::warning(NULL,tr("Turtle routing disabled!"),message);
|
||||||
|
Settings->setPageAlreadyDisplayed(QString("RS_OPMODE_MINIMAL"),true) ;
|
||||||
|
}
|
||||||
|
|
||||||
rsConfig->setOperatingMode(opMode);
|
rsConfig->setOperatingMode(opMode);
|
||||||
|
|
||||||
// reload to be safe.
|
// reload to be safe.
|
||||||
|
Loading…
Reference in New Issue
Block a user