summaryrefslogtreecommitdiffstats
path: root/core/qthelper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/qthelper.cpp')
-rw-r--r--core/qthelper.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/core/qthelper.cpp b/core/qthelper.cpp
index 7e3b58b11..7b879e7d6 100644
--- a/core/qthelper.cpp
+++ b/core/qthelper.cpp
@@ -1642,6 +1642,15 @@ char *copy_qstring(const QString &s)
return strdup(qPrintable(s));
}
+// function to call to allow the UI to show updates for longer running activities
+void (*uiNotificationCallback)(QString msg) = nullptr;
+
+void uiNotification(const QString &msg)
+{
+ if (uiNotificationCallback != nullptr)
+ uiNotificationCallback(msg);
+}
+
// function to call to get changes for a git commit
QString (*changesCallback)() = nullptr;