Skip to content
This repository has been archived by the owner on Dec 25, 2024. It is now read-only.

Save dialog doesn't show with options #74

Open
bep713 opened this issue May 17, 2021 · 0 comments
Open

Save dialog doesn't show with options #74

bep713 opened this issue May 17, 2021 · 0 comments

Comments

@bep713
Copy link

bep713 commented May 17, 2021

Platform: Win64
Version: 0.2

Wanted to post this for anyone that runs into this issue. When you show a save dialog on the UI, none of the options will do anything (title, file list, etc...) it will be a generic save dialog with no way to customize.

To fix this you need to clone the project (make sure you download the v0.2 tag - it looks like 0.3 uses a new architecture of some sort without ipcMain & ipcRenderer), look for lib/src/platform/win/dialog.cpp in void Dialog::ShowSaveDialog function add PrepareDialog(saveDialog, options.commonOptions) just as it exists in the showOpenDialog function.

Then to rebuild the 0.2 version, you need to make 1 change in node/CMakeLists.txt where it says FetchContent_Declare(nod...)
simply add a reference to the old version of this repository as of v0.2 so it pulls the older code from when 0.2 was current.

This is how it should look in CMakeLists.txt:

set(NOD_NODE_VERSION v12.13.0)
FetchContent_Declare(
nod
GIT_REPOSITORY https://github.com/patr0nus/nod
GIT_TAG b65ed548f363d1bd5fab5fe68e3a776351813c61
)

And then everything should rebuild and you can have custom save dialogs 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant