From 3c4cfa730280cac0a671f18b526ba32a951782ed Mon Sep 17 00:00:00 2001 From: Patrick Desaulniers Date: Sun, 23 May 2021 20:06:00 -0400 Subject: [PATCH] Fix build with DGL_FILE_BROWSER_DISABLED --- dgl/src/WindowPrivateData.cpp | 2 ++ dgl/src/WindowPrivateData.hpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/dgl/src/WindowPrivateData.cpp b/dgl/src/WindowPrivateData.cpp index 4a1da9d4..3a2f77f4 100644 --- a/dgl/src/WindowPrivateData.cpp +++ b/dgl/src/WindowPrivateData.cpp @@ -426,6 +426,7 @@ bool Window::PrivateData::removeIdleCallback(IdleCallback* const callback) return puglStopTimer(view, (uintptr_t)callback) == PUGL_SUCCESS; } +#ifndef DGL_FILE_BROWSER_DISABLED // ----------------------------------------------------------------------- // file handling @@ -536,6 +537,7 @@ bool Window::PrivateData::openFileBrowser(const Window::FileBrowserOptions& opti return false; } +#endif // ----------------------------------------------------------------------- // modal handling diff --git a/dgl/src/WindowPrivateData.hpp b/dgl/src/WindowPrivateData.hpp index 83b9d86a..08deb040 100644 --- a/dgl/src/WindowPrivateData.hpp +++ b/dgl/src/WindowPrivateData.hpp @@ -143,8 +143,10 @@ struct Window::PrivateData : IdleCallback { bool addIdleCallback(IdleCallback* callback, uint timerFrequencyInMs); bool removeIdleCallback(IdleCallback* callback); +#ifndef DGL_FILE_BROWSER_DISABLED // file handling bool openFileBrowser(const Window::FileBrowserOptions& options); +#endif // modal handling void startModal();