Skip to content

Commit 5fd6533

Browse files
committed
Put cursor in Busy shape when python code is running
1 parent b372755 commit 5fd6533

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/PythonPlugin.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -687,10 +687,12 @@ void PythonPlugin::populatePluginSubMenu()
687687
void PythonPlugin::handlePythonExecutionStarted()
688688
{
689689
m_pluginsMenu->setEnabled(false);
690+
QApplication::setOverrideCursor(Qt::CursorShape::BusyCursor);
690691
}
691692
void PythonPlugin::handlePythonExecutionFinished()
692693
{
693694
m_pluginsMenu->setEnabled(true);
695+
QApplication::restoreOverrideCursor();
694696
}
695697

696698
void PythonPlugin::finalizeInterpreter()

0 commit comments

Comments
 (0)