fix(lite): "Open data folder" points to the actual lite wallet dir
The lite SilentDragonXLite backend stores its wallet in its own directory (dirs::data_dir()/silentdragonxlite — %APPDATA%\silentdragonxlite on Windows, ~/.silentdragonxlite on Linux, ~/Library/Application Support/silentdragonxlite on macOS), NOT the full-node getDragonXDataDir() (…/Hush/DRAGONX). The newly added lite "Open data folder" button opened the wrong (full-node) directory. Add Platform::getLiteWalletDataDir() mirroring the backend's get_zcash_data_path for the "main" chain, and point the lite button at it. The full-node button is unchanged. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -1652,11 +1652,13 @@ void RenderSettingsPage(App* app) {
|
||||
}
|
||||
}
|
||||
|
||||
// Open the wallet data folder in the OS file manager (always available in lite).
|
||||
// Open the lite wallet data folder in the OS file manager (always available in
|
||||
// lite). The lite backend stores its wallet in its OWN dir (silentdragonxlite),
|
||||
// NOT the full-node getDragonXDataDir().
|
||||
ImGui::Dummy(ImVec2(0, Layout::spacingSm()));
|
||||
ImGui::SetCursorScreenPos(ImVec2(leftX, ImGui::GetCursorScreenPos().y));
|
||||
if (TactileButton(TR("settings_open_data_dir"), ImVec2(0, 0), S.resolveFont("button"))) {
|
||||
util::Platform::openFolder(util::Platform::getDragonXDataDir());
|
||||
util::Platform::openFolder(util::Platform::getLiteWalletDataDir());
|
||||
}
|
||||
if (ImGui::IsItemHovered()) ImGui::SetTooltip("%s", TR("tt_open_data_dir"));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user