mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-05-19 08:30:22 -07:00
parent
6538970087
commit
a17cea8b8c
@ -99,14 +99,14 @@ void CAsyncDialogBox::open(std::function<void(std::string)> onResolution) {
|
|||||||
|
|
||||||
m_selfReference = m_selfWeakReference.lock();
|
m_selfReference = m_selfWeakReference.lock();
|
||||||
|
|
||||||
m_dialogPid = proc.pid();
|
|
||||||
|
|
||||||
if (!proc.runAsync()) {
|
if (!proc.runAsync()) {
|
||||||
Debug::log(ERR, "CAsyncDialogBox::open: failed to run async");
|
Debug::log(ERR, "CAsyncDialogBox::open: failed to run async");
|
||||||
wl_event_source_remove(m_readEventSource);
|
wl_event_source_remove(m_readEventSource);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m_dialogPid = proc.pid();
|
||||||
|
|
||||||
// close the write fd, only the dialog owns it now
|
// close the write fd, only the dialog owns it now
|
||||||
close(outPipe[1]);
|
close(outPipe[1]);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user