clarify text
This commit is contained in:
parent
faeda02f2b
commit
b28aa3d189
@ -10,7 +10,7 @@
|
|||||||
extern const char* CHROME_LOCATION;
|
extern const char* CHROME_LOCATION;
|
||||||
extern const char* START_DEVTOOLS;
|
extern const char* START_DEVTOOLS;
|
||||||
extern const char* STOP_DEVTOOLS;
|
extern const char* STOP_DEVTOOLS;
|
||||||
extern const char* HEADLESS_MODE;
|
extern const char* HIDE_CHROME;
|
||||||
extern const char* DEVTOOLS_STATUS;
|
extern const char* DEVTOOLS_STATUS;
|
||||||
extern const char* AUTO_START;
|
extern const char* AUTO_START;
|
||||||
|
|
||||||
@ -119,14 +119,14 @@ namespace DevTools
|
|||||||
display->addRow(CHROME_LOCATION, chromePathEdit);
|
display->addRow(CHROME_LOCATION, chromePathEdit);
|
||||||
auto headlessCheck = new QCheckBox();
|
auto headlessCheck = new QCheckBox();
|
||||||
auto startButton = new QPushButton(START_DEVTOOLS), stopButton = new QPushButton(STOP_DEVTOOLS);
|
auto startButton = new QPushButton(START_DEVTOOLS), stopButton = new QPushButton(STOP_DEVTOOLS);
|
||||||
headlessCheck->setChecked(settings.value(HEADLESS_MODE, true).toBool());
|
headlessCheck->setChecked(settings.value(HIDE_CHROME, true).toBool());
|
||||||
QObject::connect(headlessCheck, &QCheckBox::clicked, [](bool headless) { settings.setValue(HEADLESS_MODE, headless); });
|
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(startButton, &QPushButton::clicked, [chromePathEdit, headlessCheck] { Start(S(chromePathEdit->text()), headlessCheck->isChecked()); });
|
||||||
QObject::connect(stopButton, &QPushButton::clicked, &Close);
|
QObject::connect(stopButton, &QPushButton::clicked, &Close);
|
||||||
auto buttons = new QHBoxLayout();
|
auto buttons = new QHBoxLayout();
|
||||||
buttons->addWidget(startButton);
|
buttons->addWidget(startButton);
|
||||||
buttons->addWidget(stopButton);
|
buttons->addWidget(stopButton);
|
||||||
display->addRow(HEADLESS_MODE, headlessCheck);
|
display->addRow(HIDE_CHROME, headlessCheck);
|
||||||
auto autoStartCheck = new QCheckBox();
|
auto autoStartCheck = new QCheckBox();
|
||||||
autoStartCheck->setChecked(settings.value(AUTO_START, false).toBool());
|
autoStartCheck->setChecked(settings.value(AUTO_START, false).toBool());
|
||||||
QObject::connect(autoStartCheck, &QCheckBox::clicked, [](bool autoStart) { settings.setValue(AUTO_START, autoStart); });
|
QObject::connect(autoStartCheck, &QCheckBox::clicked, [](bool autoStart) { settings.setValue(AUTO_START, autoStart); });
|
||||||
|
2
text.cpp
2
text.cpp
@ -150,7 +150,7 @@ const char* API_KEY = u8"API key";
|
|||||||
const char* CHROME_LOCATION = u8"Google Chrome file location";
|
const char* CHROME_LOCATION = u8"Google Chrome file location";
|
||||||
const char* START_DEVTOOLS = u8"Start DevTools";
|
const char* START_DEVTOOLS = u8"Start DevTools";
|
||||||
const char* STOP_DEVTOOLS = u8"Stop 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* DEVTOOLS_STATUS = u8"DevTools status";
|
||||||
const char* AUTO_START = u8"Start automatically";
|
const char* AUTO_START = u8"Start automatically";
|
||||||
const wchar_t* ERROR_START_CHROME = L"failed to start Chrome or to connect to it";
|
const wchar_t* ERROR_START_CHROME = L"failed to start Chrome or to connect to it";
|
||||||
|
Loading…
Reference in New Issue
Block a user