mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:27:45 +00:00
FileSystemAccessServer+TextEditor: Implement cross-process modal prompts
This transitions from synchronous IPC calls to asynchronous IPC calls provided through a synchronous interface in LibFileSystemAccessClient which allows the parent Application to stay responsive. It achieves this with Promise which is pumping the Application event loop while waiting for the Dialog to respond with the user's action. LibFileSystemAccessClient provides a lazy singleton which also ensures that FileSystemAccessServer is running in the event of a crash. This also transitions TextEditor into using LibFileSystemAccessClient.
This commit is contained in:
parent
ab353fd4e1
commit
38594dde79
12 changed files with 224 additions and 88 deletions
12
Userland/Libraries/LibFileSystemAccessClient/CMakeLists.txt
Normal file
12
Userland/Libraries/LibFileSystemAccessClient/CMakeLists.txt
Normal file
|
@ -0,0 +1,12 @@
|
|||
set(SOURCES
|
||||
Client.cpp
|
||||
)
|
||||
|
||||
set(GENERATED_SOURCES
|
||||
../../Services/FileSystemAccessServer/FileSystemAccessClientEndpoint.h
|
||||
../../Services/FileSystemAccessServer/FileSystemAccessServerEndpoint.h
|
||||
)
|
||||
|
||||
serenity_lib(LibFileSystemAccessClient filesystemaccessclient)
|
||||
target_link_libraries(LibFileSystemAccessClient LibIPC)
|
||||
add_dependencies(LibFileSystemAccessClient WindowServer)
|
Loading…
Add table
Add a link
Reference in a new issue