summaryrefslogtreecommitdiff
path: root/ZeroTierUI/aboutwindow.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2013-11-21 15:11:22 -0500
committerAdam Ierymenko <adam.ierymenko@gmail.com>2013-11-21 15:11:22 -0500
commit4296db235894f8d403fc656f76e2a3578ca2d597 (patch)
tree68701e7134ff051c5d5dbf7ca4df9b149186a275 /ZeroTierUI/aboutwindow.cpp
parent31d718c4a49ddebea2fdb6c64c438295f1284a6f (diff)
downloadinfinitytier-4296db235894f8d403fc656f76e2a3578ca2d597.tar.gz
infinitytier-4296db235894f8d403fc656f76e2a3578ca2d597.zip
Add configuration age to listnetworks results and GUI.
Diffstat (limited to 'ZeroTierUI/aboutwindow.cpp')
-rw-r--r--ZeroTierUI/aboutwindow.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/ZeroTierUI/aboutwindow.cpp b/ZeroTierUI/aboutwindow.cpp
index 83d680b1..1a2b2290 100644
--- a/ZeroTierUI/aboutwindow.cpp
+++ b/ZeroTierUI/aboutwindow.cpp
@@ -1,11 +1,17 @@
#include "aboutwindow.h"
#include "ui_aboutwindow.h"
+#include <QMessageBox>
+#include "../node/Defaults.hpp"
+
AboutWindow::AboutWindow(QWidget *parent) :
QDialog(parent),
ui(new Ui::AboutWindow)
{
ui->setupUi(this);
+#ifndef __APPLE__
+ ui->uninstallButton->hide();
+#endif
}
AboutWindow::~AboutWindow()
@@ -15,4 +21,11 @@ AboutWindow::~AboutWindow()
void AboutWindow::on_uninstallButton_clicked()
{
+ // Apple only... other OSes have more intrinsic mechanisms for uninstalling.
+ QMessageBox::information(
+ this,
+ "Uninstalling ZeroTier One",
+ QString("Uninstalling ZeroTier One is easy!\n\nJust remove ZeroTier One from your Applications folder and the service will automatically shut down within a few seconds. Then, on your next reboot, all other support files will be automatically deleted.\n\nIf you wish to uninstall the service and support files now, you can run the 'uninstall.sh' script found in ") + ZeroTier::ZT_DEFAULTS.defaultHomePath.c_str() + " using the 'sudo' command in a terminal.",
+ QMessageBox::Ok,
+ QMessageBox::NoButton);
}