Optionally return error message from wxSecretStore::IsOk()
This allows to give at least some explanation about why the secrets can't be stored to the user, e.g. they could search for a message such as The name org.freedesktop.secrets was not provided by any .service files to find out that gnome-keyring package needs to be installed on their system. Note that this change means that under Unix an attempt to connect to the secret service is now made when wxSecretStore is constructed and not just when it's used for the first time, as before.
This commit is contained in:
@@ -78,6 +78,8 @@ private:
|
||||
class wxSecretStoreImpl : public wxRefCounter
|
||||
{
|
||||
public:
|
||||
virtual bool IsOk(wxString* WXUNUSED(errmsg)) const { return true; }
|
||||
|
||||
virtual bool Save(const wxString& service,
|
||||
const wxString& username,
|
||||
const wxSecretValueImpl& password,
|
||||
|
Reference in New Issue
Block a user