From b2cb1ea8e7b404badeff16e1bb1f8de267dc0dbe Mon Sep 17 00:00:00 2001 From: wh201906 Date: Wed, 23 Nov 2022 14:16:51 +0800 Subject: [PATCH] Show current working directory of GUI in Settings --- src/ui/mainwindow.cpp | 2 ++ src/ui/mainwindow.ui | 17 +++++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/src/ui/mainwindow.cpp b/src/ui/mainwindow.cpp index db13580..c74e0f4 100644 --- a/src/ui/mainwindow.cpp +++ b/src/ui/mainwindow.cpp @@ -1064,6 +1064,8 @@ void MainWindow::uiInit() ui->PM3_pathEdit->setText(settings->value("path", "proxmark3").toString()); settings->endGroup(); + ui->Set_Client_GUIWorkingDirLabel->setText(QDir::currentPath()); + settings->beginGroup("Client_Args"); ui->Set_Client_startArgsEdit->setText(settings->value("args", " -f").toString()); settings->endGroup(); diff --git a/src/ui/mainwindow.ui b/src/ui/mainwindow.ui index f055503..9381e7e 100644 --- a/src/ui/mainwindow.ui +++ b/src/ui/mainwindow.ui @@ -2650,6 +2650,23 @@ or the communication between a tag and a reader. Client + + + + GUI working directory: + + + + + + + + + + Qt::Horizontal + + +