summaryrefslogtreecommitdiff
path: root/ZeroTierUI/aboutwindow.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2013-12-12 13:02:02 -0800
committerAdam Ierymenko <adam.ierymenko@gmail.com>2013-12-12 13:02:02 -0800
commit54d1b11b1981481ba177c8f7c84c179977f5652d (patch)
treeaa8eacfe1d0badfca3f9cb6e9856b9f458e1a785 /ZeroTierUI/aboutwindow.cpp
parentf038ed9ca2f3e65e063571e77cd48f1072f2d3e3 (diff)
parent68defd998008e83e5348d29cab5535dab3d444e8 (diff)
downloadinfinitytier-54d1b11b1981481ba177c8f7c84c179977f5652d.tar.gz
infinitytier-54d1b11b1981481ba177c8f7c84c179977f5652d.zip
Merge branch 'adamierymenko-dev'
Diffstat (limited to 'ZeroTierUI/aboutwindow.cpp')
-rw-r--r--ZeroTierUI/aboutwindow.cpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/ZeroTierUI/aboutwindow.cpp b/ZeroTierUI/aboutwindow.cpp
new file mode 100644
index 00000000..1a2b2290
--- /dev/null
+++ b/ZeroTierUI/aboutwindow.cpp
@@ -0,0 +1,31 @@
+#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()
+{
+ delete ui;
+}
+
+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);
+}