Изменено

- уменьшен шрифт в "о программе"
- добавление в историю любой попытки подключиться к удаленному серверу
This commit is contained in:
Alexander Zhirov 2023-02-23 18:30:16 +03:00
parent fc2cb7ee29
commit 8b727c5f71
2 changed files with 5 additions and 2 deletions

View File

@ -80,6 +80,9 @@ static int guiConnect(Ihandle *self)
printf("%s\n", args.argv[i]);
}
// Добавление в историю любой попытки подключиться к удаленному серверу
dbInsertHistory(login, host);
enum XF_EXIT_CODE xCode = free_rdp_connect(args.argc, args.argv);
if (!(xCode == XF_EXIT_DNS_NAME_NOT_FOUND || xCode == XF_EXIT_CONNECT_FAILED || xCode == XF_EXIT_TLS_CONNECT_FAILED))
@ -88,7 +91,6 @@ static int guiConnect(Ihandle *self)
if (!dbAddServer(result, host))
{
dbInsertHistory(login, host);
IupSetAttribute(IupGetDialogChild(self, "SERVER"), "APPENDITEM", host);
}
dbSetUserNameCurrent(login);

View File

@ -368,6 +368,7 @@ static Ihandle* settingsBoxAbout()
inputAbout = IupText(NULL);
formattag = IupUser();
IupSetAttribute(formattag, "FONTSIZE", "8");
IupSetAttribute(formattag, "ALIGNMENT", "CENTER");
IupSetAttribute(formattag, "SELECTION", "1,1:7,50");
IupSetAttribute(inputAbout, "ADDFORMATTAG_HANDLE", (char*)formattag);
@ -378,7 +379,7 @@ static Ihandle* settingsBoxAbout()
IupSetAttribute(inputAbout, "ADDFORMATTAG_HANDLE", (char*)formattag);
formattag = IupUser();
IupSetAttribute(formattag, "FONTSIZE", "11");
IupSetAttribute(formattag, "FONTSIZE", "9");
IupSetAttribute(formattag, "SELECTION", "1,1:1,20");
IupSetAttribute(inputAbout, "ADDFORMATTAG_HANDLE", (char*)formattag);