File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed
Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 2727
2828#include " FontUtils.hpp"
2929#include " cl_standard_paths.h"
30+ #include " file_logger.h"
3031#include " fileutils.h"
3132
3233#include < wx/filefn.h>
Original file line number Diff line number Diff line change 11#include " RemotyConfig.hpp"
22
33#include " cl_config.h"
4+ #include " file_logger.h"
45
56#include < algorithm>
67
@@ -52,14 +53,18 @@ void RemotyConfig::UpdateRecentWorkspaces(const RemoteWorkspaceInfo& workspaceIn
5253
5354 // serialise the items
5455 clConfig::Get ().Write (REMOTY_RECENT_WORKSPACES, [&curitems]() -> JSONItem {
56+ clDEBUG () << " Writing remote workspaces to disk" << endl;
5557 JSONItem arr = JSONItem::createArray ();
5658 for (const auto & wi : curitems) {
57- auto d = arr. AddObject (wxEmptyString );
59+ auto d = JSONItem::createObject ( );
5860 d.addProperty (" account" , wi.account );
5961 d.addProperty (" path" , wi.path );
62+ arr.arrayAppend (std::move (d));
6063 }
64+ clDEBUG () << " Array content:" << arr.FormatRawString () << endl;
6165 return arr;
6266 });
67+ clConfig::Get ().Save ();
6368}
6469
6570bool RemotyConfig::IsOpenWorkspaceTypeLocal () const { return clConfig::Get ().Read (REMOTY_OPEN_WORKSPACE_TYPE, true ); }
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ CL_PLUGIN_API PluginInfo* GetPluginInfo()
7676 static PluginInfo info;
7777 info.SetAuthor (wxT (" Eran Ifrah" ));
7878 info.SetName (wxT (" SFTP" ));
79- info.SetDescription (_ (" SFTP plugin for codelite IDE" ));
79+ info.SetDescription (_ (" SFTP plugin for CodeLite IDE" ));
8080 info.SetVersion (wxT (" v1.0" ));
8181 return &info;
8282}
@@ -86,7 +86,7 @@ CL_PLUGIN_API int GetPluginInterfaceVersion() { return PLUGIN_INTERFACE_VERSION;
8686SFTP::SFTP (IManager* manager)
8787 : IPlugin(manager)
8888{
89- m_longName = _ (" SFTP plugin for codelite IDE" );
89+ m_longName = _ (" SFTP plugin for CodeLite IDE" );
9090 m_shortName = wxT (" SFTP" );
9191
9292 wxTheApp->Connect (
You can’t perform that action at this time.
0 commit comments