Change LogView indication

Имена недоступных серверов подсвечиваются.
Информационное окно об отсутствии соединения не показывается.
Таймаут между попытками установки соединения сокращен до 2 минут.
This commit is contained in:
lsv 2023-09-07 14:21:17 +05:00 committed by lsv
parent 641cbcf282
commit 9676013083
4 changed files with 364 additions and 10 deletions

View file

@ -338,7 +338,7 @@ void pgConn::Close()
// Reconnect to the server
bool pgConn::Reconnect()
bool pgConn::Reconnect(bool message)
{
// Close the existing (possibly broken) connection
Close();
@ -349,6 +349,7 @@ bool pgConn::Reconnect()
// Attempt the reconnect
if (!DoConnect())
{
if (!message) return false;
wxLogError(_("Failed to re-establish the connection to the server %s"), GetName().c_str());
return false;
}