Add menu option to allow screenshots

* Fix #7580
* Also refactor the code to move everything into MainWindow
This commit is contained in:
Jonathan White 2022-11-24 21:09:01 -05:00
parent f9f82e9705
commit 0a2e716525
8 changed files with 48 additions and 28 deletions

View file

@ -166,11 +166,9 @@ bool MacUtils::canPreventScreenCapture() const
bool MacUtils::setPreventScreenCapture(QWindow* window, bool prevent) const
{
if (!window) {
return false;
if (window) {
m_appkit->setWindowSecurity(window, prevent);
}
m_appkit->setWindowSecurity(window, prevent);
return true;
}