Define custom Cardinal API for async dialogs
Closes #51 Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
b6ac2766dc
commit
ce64476fa4
6 changed files with 242 additions and 8 deletions
|
|
@ -322,6 +322,20 @@ public:
|
|||
|
||||
void uiIdle() override
|
||||
{
|
||||
if (filebrowserhandle != nullptr && fileBrowserIdle(filebrowserhandle))
|
||||
{
|
||||
{
|
||||
const char* const path = fileBrowserGetPath(filebrowserhandle);
|
||||
|
||||
const ScopedContext sc(this);
|
||||
filebrowseraction(path != nullptr ? strdup(path) : nullptr);
|
||||
}
|
||||
|
||||
fileBrowserClose(filebrowserhandle);
|
||||
filebrowseraction = nullptr;
|
||||
filebrowserhandle = nullptr;
|
||||
}
|
||||
|
||||
repaint();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue