From 4ee94a3b2ebd93ea08d926abb2f7cab4804af99c Mon Sep 17 00:00:00 2001 From: Selva Nair Date: Thu, 28 Oct 2021 16:51:58 -0400 Subject: [PATCH] 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 --- misc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/misc.c b/misc.c index 9da1f45..5c853e9 100644 --- a/misc.c +++ b/misc.c @@ -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(); }