summaryrefslogtreecommitdiff
path: root/src/helpers
diff options
context:
space:
mode:
authorLuke Barkess <57995669+Brumus14@users.noreply.github.com>2025-12-14 17:19:35 +0000
committerGitHub <noreply@github.com>2025-12-14 17:19:35 +0000
commit6535ff07c9f16dbd4928f1ef8a12a939db59f7b5 (patch)
tree917747ade2f79ca6e4875363991709c799e282c0 /src/helpers
parent05ccbb2f2dc3121a48e9c1925357039b27d22a92 (diff)
anr: don't create for anr dialogs (#12601)
Diffstat (limited to 'src/helpers')
-rw-r--r--src/helpers/AsyncDialogBox.cpp4
-rw-r--r--src/helpers/AsyncDialogBox.hpp3
2 files changed, 6 insertions, 1 deletions
diff --git a/src/helpers/AsyncDialogBox.cpp b/src/helpers/AsyncDialogBox.cpp
index 6257dcb0..b3688680 100644
--- a/src/helpers/AsyncDialogBox.cpp
+++ b/src/helpers/AsyncDialogBox.cpp
@@ -147,6 +147,10 @@ bool CAsyncDialogBox::isRunning() const {
return m_readEventSource;
}
+pid_t CAsyncDialogBox::getPID() const {
+ return m_dialogPid;
+}
+
SP<CAsyncDialogBox> CAsyncDialogBox::lockSelf() {
return m_selfWeakReference.lock();
}
diff --git a/src/helpers/AsyncDialogBox.hpp b/src/helpers/AsyncDialogBox.hpp
index 5f94be0d..8db516ce 100644
--- a/src/helpers/AsyncDialogBox.hpp
+++ b/src/helpers/AsyncDialogBox.hpp
@@ -26,6 +26,7 @@ class CAsyncDialogBox {
SP<CPromise<std::string>> open();
void kill();
bool isRunning() const;
+ pid_t getPID() const;
SP<CAsyncDialogBox> lockSelf();
@@ -51,4 +52,4 @@ class CAsyncDialogBox {
// WARNING: cyclic reference. This will be removed once the event source is removed to avoid dangling pointers
SP<CAsyncDialogBox> m_selfReference;
WP<CAsyncDialogBox> m_selfWeakReference;
-}; \ No newline at end of file
+};