feat: add F5 hotkey to reload instances
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
@ -181,6 +181,9 @@ bool InstancesView::eventFilter(QObject* obj, QEvent* event)
|
||||
case Qt::Key_Enter:
|
||||
activateInstance(currentView()->selectionModel()->currentIndex());
|
||||
return true;
|
||||
case Qt::Key_F5:
|
||||
emit refreshInstances();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return QObject::eventFilter(obj, event);
|
||||
|
@ -59,6 +59,7 @@ class InstancesView : public QStackedWidget {
|
||||
void instanceActivated(InstancePtr inst);
|
||||
void currentInstanceChanged(InstancePtr current, InstancePtr previous);
|
||||
void showContextMenu(const QPoint pos, InstancePtr inst);
|
||||
void refreshInstances();
|
||||
|
||||
private slots:
|
||||
void activateInstance(const QModelIndex& index);
|
||||
|
Reference in New Issue
Block a user