at last after all this preparation it begins
This commit is contained in:
parent
58f29b8977
commit
8d37037674
@ -505,6 +505,21 @@ void Frame::NewWalletDisplay(const wxFileName& filename, const char* human_legib
|
|||||||
void Frame::OnSaveNew(wxCommandEvent& WXUNUSED(event))
|
void Frame::OnSaveNew(wxCommandEvent& WXUNUSED(event))
|
||||||
{
|
{
|
||||||
wxFileName wxFileWallet = GetPathForNewWallet();
|
wxFileName wxFileWallet = GetPathForNewWallet();
|
||||||
|
wxMessageDialog dlg(singletonFrame,
|
||||||
|
"hello, random master secrets formed, DO YOU Wwant to record them and set their security handling now (you can always do this later)",
|
||||||
|
"secrets formed caption",
|
||||||
|
wxNO_DEFAULT| wxYES_NO | wxCANCEL |wxCENTRE
|
||||||
|
);
|
||||||
|
auto retval = dlg.ShowModal(); //Possible return values wxID_YES, wxID_NO, wxID_OK or wxID_CANCEL
|
||||||
|
if (retval == wxID_CANCEL)throw MyException(WalletCreationCancelled_sz);
|
||||||
|
if (retval == wxID_YES) {
|
||||||
|
wxMessageDialog dlg(singletonFrame,
|
||||||
|
"mISSING CODE TO SET SECURITY PROPERTIES",
|
||||||
|
"SET SECURITY CAPTION",
|
||||||
|
wxOK | wxCENTRE
|
||||||
|
);
|
||||||
|
auto retval=dlg.ShowModal(); //Possible return values wxID_OK or wxID_CANCEL
|
||||||
|
}
|
||||||
NewWalletDisplay(wxFileWallet, wxFileWallet.GetFullPath().ToUTF8());
|
NewWalletDisplay(wxFileWallet, wxFileWallet.GetFullPath().ToUTF8());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -147,6 +147,7 @@ OversizeBase58String::OversizeBase58String() noexcept :
|
|||||||
|
|
||||||
|
|
||||||
const char FailureToThrowExpectedException_sz[]{ "Exception not thrown for deliberate error in unit test" };
|
const char FailureToThrowExpectedException_sz[]{ "Exception not thrown for deliberate error in unit test" };
|
||||||
|
const char WalletCreationCancelled_sz[]{ R"|(Creation of new master secret and wallet cancelled)|" };
|
||||||
|
|
||||||
|
|
||||||
// Random words for the passphrase.
|
// Random words for the passphrase.
|
||||||
|
@ -74,6 +74,7 @@ inline constexpr auto sz_public_key_of{ R"|(Public key of ")|" };
|
|||||||
inline constexpr auto sz_fails_to_correspond{ R"|(" fails to correspond to master secret.
|
inline constexpr auto sz_fails_to_correspond{ R"|(" fails to correspond to master secret.
|
||||||
This wallet cannot communicate as this identity.)|" };
|
This wallet cannot communicate as this identity.)|" };
|
||||||
constexpr auto sz_unexpected_error{ R"|(unexpected error)|" };
|
constexpr auto sz_unexpected_error{ R"|(unexpected error)|" };
|
||||||
|
extern const char WalletCreationCancelled_sz[];
|
||||||
|
|
||||||
//Command line parameters
|
//Command line parameters
|
||||||
extern const wchar_t wsz_commandLineLogo[];
|
extern const wchar_t wsz_commandLineLogo[];
|
||||||
|
Loading…
Reference in New Issue
Block a user