Allow screenshot when the home menu is not available

This commit is contained in:
Maschell 2023-01-26 13:18:21 +01:00
parent aeb9254da7
commit 046d587ec5

View File

@ -30,7 +30,7 @@ void NotAvailableCallback(NotificationModuleHandle handle, void *context) {
void RequestScreenshot() { void RequestScreenshot() {
NotificationModuleStatus err; NotificationModuleStatus err;
if (gBlockScreenshots || !OSIsHomeButtonMenuEnabled()) { if (gBlockScreenshots) {
if (!gNotAvailableNotificationDisplayed) { if (!gNotAvailableNotificationDisplayed) {
if ((err = NotificationModule_AddErrorNotificationWithCallback("Screenshots not available at the moment.", if ((err = NotificationModule_AddErrorNotificationWithCallback("Screenshots not available at the moment.",
NotAvailableCallback, NotAvailableCallback,