Skip to content

Commit

Permalink
remove permission request
Browse files Browse the repository at this point in the history
  • Loading branch information
Fleeym committed Feb 4, 2024
1 parent 108289f commit 024ea7a
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/ui/nong_add_popup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,17 +97,6 @@ void NongAddPopup::openFile(CCObject* target) {
FLAlertLayer::create("Error", "Failed to open file", "Ok")->show();
};

if (!geode::utils::permission::getPermissionStatus(permission::Permission::ReadAudio)) {
geode::utils::permission::requestPermission(permission::Permission::ReadAudio, [this, options, callback, failedCallback](bool allowed) {
if (!allowed) {
FLAlertLayer::create("Error", "You need to allow media permissions to import songs!", "Ok")->show();
return;
}
file::pickFile(file::PickMode::OpenFile, options, callback, failedCallback);
});
return;
}

file::pickFile(file::PickMode::OpenFile, options, callback, failedCallback);
}

Expand Down

0 comments on commit 024ea7a

Please sign in to comment.