mirror of
https://github.com/EdgeTX/edgetx.git
synced 2025-07-26 09:45:16 +03:00
Next branch fixes #3141 Fx key to reload scripts
This commit is contained in:
parent
b778c5e469
commit
3e409a0371
11 changed files with 40 additions and 0 deletions
|
@ -73,6 +73,7 @@ SimulatorDialog::SimulatorDialog(QWidget * parent, SimulatorInterface *simulator
|
|||
new QShortcut(QKeySequence(Qt::Key_F4), this, SLOT(openTelemetrySimulator()));
|
||||
new QShortcut(QKeySequence(Qt::Key_F5), this, SLOT(openTrainerSimulator()));
|
||||
new QShortcut(QKeySequence(Qt::Key_F6), this, SLOT(openDebugOutput()));
|
||||
new QShortcut(QKeySequence(Qt::Key_F7), this, SLOT(luaReload()));
|
||||
traceCallbackInstance = this;
|
||||
}
|
||||
|
||||
|
@ -166,11 +167,18 @@ void SimulatorDialog::openDebugOutput()
|
|||
}
|
||||
}
|
||||
|
||||
void SimulatorDialog::luaReload()
|
||||
{
|
||||
// force a reload of the lua environment (as if a standalone script were run)
|
||||
simulator->setLuaStateReloadPermanentScripts();
|
||||
}
|
||||
|
||||
void SimulatorDialog::onDebugOutputClose()
|
||||
{
|
||||
DebugOut = 0;
|
||||
}
|
||||
|
||||
|
||||
void SimulatorDialog::keyPressEvent (QKeyEvent *event)
|
||||
{
|
||||
switch (event->key()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue