mirror of
https://github.com/feather-wallet/feather.git
synced 2024-12-23 12:09:50 +00:00
Merge pull request 'ExternalLinkWarning: don't show Tor warning on Tails/Whonix' (#235) from tobtoht/feather:link_warning_tailswhonix into master
Reviewed-on: https://git.wownero.com/feather/feather/pulls/235
This commit is contained in:
commit
7d2748c0bc
1 changed files with 4 additions and 1 deletions
|
@ -22,6 +22,7 @@
|
||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
#include "utils/config.h"
|
#include "utils/config.h"
|
||||||
#include "utils/tails.h"
|
#include "utils/tails.h"
|
||||||
|
#include "utils/whonix.h"
|
||||||
|
|
||||||
// Application log for current session
|
// Application log for current session
|
||||||
QVector<logMessage> applicationLog = QVector<logMessage>(); // todo: replace with ring buffer
|
QVector<logMessage> applicationLog = QVector<logMessage>(); // todo: replace with ring buffer
|
||||||
|
@ -284,7 +285,9 @@ void Utils::externalLinkWarning(QWidget *parent, const QString &url){
|
||||||
|
|
||||||
QString body = "You are about to open the following link:\n\n";
|
QString body = "You are about to open the following link:\n\n";
|
||||||
body += QString("%1\n\n").arg(url);
|
body += QString("%1\n\n").arg(url);
|
||||||
body += "You will NOT be using Tor.";
|
|
||||||
|
if (!(TailsOS::detect() || WhonixOS::detect()))
|
||||||
|
body += "You will NOT be using Tor.";
|
||||||
|
|
||||||
switch (QMessageBox::warning(parent, "External link warning", body, QMessageBox::Cancel|QMessageBox::Ok)) {
|
switch (QMessageBox::warning(parent, "External link warning", body, QMessageBox::Cancel|QMessageBox::Ok)) {
|
||||||
case QMessageBox::Cancel:
|
case QMessageBox::Cancel:
|
||||||
|
|
Loading…
Reference in a new issue