Browse Source

Fix build with DGL_FILE_BROWSER_DISABLED

pull/276/head
Patrick Desaulniers Filipe Coelho <falktx@falktx.com> 4 years ago
parent
commit
3c4cfa7302
2 changed files with 4 additions and 0 deletions
  1. +2
    -0
      dgl/src/WindowPrivateData.cpp
  2. +2
    -0
      dgl/src/WindowPrivateData.hpp

+ 2
- 0
dgl/src/WindowPrivateData.cpp View File

@@ -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


+ 2
- 0
dgl/src/WindowPrivateData.hpp View File

@@ -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();


Loading…
Cancel
Save