From b28aa3d18927c286bddd806964d4f1344818e2a8 Mon Sep 17 00:00:00 2001 From: Akash Mozumdar Date: Mon, 31 Jan 2022 00:48:50 -0700 Subject: [PATCH] clarify text --- extensions/devtools.cpp | 8 ++++---- text.cpp | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/extensions/devtools.cpp b/extensions/devtools.cpp index d6ff2e6..0bf8745 100644 --- a/extensions/devtools.cpp +++ b/extensions/devtools.cpp @@ -10,7 +10,7 @@ extern const char* CHROME_LOCATION; extern const char* START_DEVTOOLS; extern const char* STOP_DEVTOOLS; -extern const char* HEADLESS_MODE; +extern const char* HIDE_CHROME; extern const char* DEVTOOLS_STATUS; extern const char* AUTO_START; @@ -119,14 +119,14 @@ namespace DevTools display->addRow(CHROME_LOCATION, chromePathEdit); auto headlessCheck = new QCheckBox(); auto startButton = new QPushButton(START_DEVTOOLS), stopButton = new QPushButton(STOP_DEVTOOLS); - headlessCheck->setChecked(settings.value(HEADLESS_MODE, true).toBool()); - QObject::connect(headlessCheck, &QCheckBox::clicked, [](bool headless) { settings.setValue(HEADLESS_MODE, headless); }); + headlessCheck->setChecked(settings.value(HIDE_CHROME, true).toBool()); + QObject::connect(headlessCheck, &QCheckBox::clicked, [](bool headless) { settings.setValue(HIDE_CHROME, headless); }); QObject::connect(startButton, &QPushButton::clicked, [chromePathEdit, headlessCheck] { Start(S(chromePathEdit->text()), headlessCheck->isChecked()); }); QObject::connect(stopButton, &QPushButton::clicked, &Close); auto buttons = new QHBoxLayout(); buttons->addWidget(startButton); buttons->addWidget(stopButton); - display->addRow(HEADLESS_MODE, headlessCheck); + display->addRow(HIDE_CHROME, headlessCheck); auto autoStartCheck = new QCheckBox(); autoStartCheck->setChecked(settings.value(AUTO_START, false).toBool()); QObject::connect(autoStartCheck, &QCheckBox::clicked, [](bool autoStart) { settings.setValue(AUTO_START, autoStart); }); diff --git a/text.cpp b/text.cpp index 486da9f..8721c59 100644 --- a/text.cpp +++ b/text.cpp @@ -150,7 +150,7 @@ const char* API_KEY = u8"API key"; const char* CHROME_LOCATION = u8"Google Chrome file location"; const char* START_DEVTOOLS = u8"Start DevTools"; const char* STOP_DEVTOOLS = u8"Stop DevTools"; -const char* HEADLESS_MODE = u8"Headless mode"; +const char* HIDE_CHROME = u8"Hide Chrome window"; const char* DEVTOOLS_STATUS = u8"DevTools status"; const char* AUTO_START = u8"Start automatically"; const wchar_t* ERROR_START_CHROME = L"failed to start Chrome or to connect to it";