diff options
author | falkTX <falktx@gmail.com> | 2014-04-26 22:05:16 +0100 |
---|---|---|
committer | falkTX <falktx@gmail.com> | 2014-04-28 20:30:32 +0100 |
commit | 9cfd52d05cc951ea034bfcd4d7d49299d369e9e4 (patch) | |
tree | 64624c0d77ff017b2602c015d397da38cfb7327a /distrho/src/DistrhoUIInternal.hpp | |
parent | 3c38575b219708f36462710bb9ded221c56aaa2e (diff) |
Update
Diffstat (limited to 'distrho/src/DistrhoUIInternal.hpp')
-rw-r--r-- | distrho/src/DistrhoUIInternal.hpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/distrho/src/DistrhoUIInternal.hpp b/distrho/src/DistrhoUIInternal.hpp index 2672a850..e3986247 100644 --- a/distrho/src/DistrhoUIInternal.hpp +++ b/distrho/src/DistrhoUIInternal.hpp @@ -233,6 +233,11 @@ public: return ! glApp.isQuiting(); } + bool isVisible() const noexcept + { + return glWindow.isVisible(); + } + void quit() { glWindow.close(); @@ -254,9 +259,11 @@ public: glWindow.setTransientWinId(winId); } - void setVisible(const bool yesNo) + bool setVisible(const bool yesNo) { glWindow.setVisible(yesNo); + + return ! glApp.isQuiting(); } private: |