Skip to content

Commit 740c486

Browse files
calum12345Fleeym
andauthored
fixed file picker for mac (#99)
* fixed file picker for mac * Update nong_add_popup.cpp --------- Co-authored-by: Fleeym <61891787+Fleeym@users.noreply.github.com>
1 parent 6048902 commit 740c486

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

jukebox/jukebox/ui/nong_add_popup.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -377,12 +377,8 @@ bool NongAddPopup::setup(int songID, std::optional<Song*> replacedNong) {
377377
CCSize NongAddPopup::getPopupSize() { return {320.f, 240.f}; }
378378

379379
void NongAddPopup::openFile(CCObject* target) {
380-
#ifdef GEODE_IS_WINDOWS
381380
file::FilePickOptions::Filter filter = {
382381
.description = "Songs", .files = {"*.mp3", "*.flac", "*.wav", "*.ogg"}};
383-
#else
384-
file::FilePickOptions::Filter filter = {};
385-
#endif
386382
file::FilePickOptions options = {std::nullopt, {filter}};
387383

388384
m_pickListener.bind(this, &NongAddPopup::onFileOpen);

0 commit comments

Comments
 (0)