Show import success using balloon notification

Less intrusive than a message box that user has
to close. Also the imported filename stub is now
included in the message.

Signed-off-by: Selva Nair <selva.nair@gmail.com>
pull/464/head
Selva Nair 2021-10-28 16:51:58 -04:00
parent 56ee704501
commit 859d0fbf2f
1 changed files with 2 additions and 1 deletions

3
misc.c
View File

@ -39,6 +39,7 @@
#include "main.h"
#include "openvpn_config.h"
#include "openvpn-gui-res.h"
#include "tray.h"
/*
* Helper function to do base64 conversion through CryptoAPI
@ -692,7 +693,7 @@ ImportConfigFile(const TCHAR* source)
return;
}
ShowLocalizedMsg(IDS_NFO_IMPORT_SUCCESS);
ShowTrayBalloon(LoadLocalizedString(IDS_NFO_IMPORT_SUCCESS), fileName);
/* rescan file list after import */
BuildFileList();
}