Internal
Public Access
Add Import/Export for profile lists
File -> Export Profiles... writes all profiles (plus explicit, including empty, folders) to a JSON file. File -> Import Profiles... reads one back, recreates folders, and inserts profiles as new rows so IDs never collide with the destination database. No credentials are ever persisted on a Profile in the first place (only privateKeyPath, a filesystem path), so nothing sensitive is exposed by an exported file. Verified with a standalone headless round-trip test against isolated app-data databases (SSH + RDP profiles, nested folders, all fields); caught and fixed a bug where import was redundantly creating an explicit folder row per profile that didn't exist in the original export. Fixes #17. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -32,6 +32,8 @@ public:
|
||||
|
||||
void createProfileInCurrentContext();
|
||||
void createFolderInCurrentContext();
|
||||
void exportProfiles();
|
||||
void importProfiles();
|
||||
|
||||
signals:
|
||||
void connectRequested(const Profile& profile);
|
||||
|
||||
Reference in New Issue
Block a user