mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-12 08:40:19 +00:00
Get rid of gui_tweaks 64
This commit is contained in:
@@ -277,6 +277,7 @@ static const setting userlist_settings[] =
|
||||
{ST_HEADER, N_("User List"),0,0,0},
|
||||
{ST_TOGGLE, N_("Show hostnames in user list"), P_OFFINTNL(showhostname_in_userlist), 0, 0, 0},
|
||||
{ST_TOGGLE, N_("Use the Text box font and colors"), P_OFFINTNL(style_namelistgad),0,0,0},
|
||||
{ST_TOGGLE, N_("Show icons instead of text symbols"), P_OFFINTNL(gui_ulist_icons), 0, 0, 0},
|
||||
/* {ST_TOGGLE, N_("Resizable user list"), P_OFFINTNL(paned_userlist),0,0,0},*/
|
||||
{ST_MENU, N_("User list sorted by:"), P_OFFINTNL(userlist_sort), 0, ulmenutext, 0},
|
||||
{ST_MENU, N_("Show user list at:"), P_OFFINTNL(gui_ulist_pos), 0, ulpos, 1},
|
||||
@@ -2208,6 +2209,8 @@ setup_apply (struct xchatprefs *pr)
|
||||
noapply = TRUE;
|
||||
if (DIFF (tab_sort))
|
||||
noapply = TRUE;
|
||||
if (DIFF (gui_ulist_icons))
|
||||
noapply = TRUE;
|
||||
if (DIFF (use_server_tab))
|
||||
noapply = TRUE;
|
||||
if (DIFF (style_namelistgad))
|
||||
|
||||
@@ -357,7 +357,7 @@ fe_userlist_insert (session *sess, struct User *newuser, int row, int sel)
|
||||
do_away = FALSE;
|
||||
|
||||
nick = newuser->nick;
|
||||
if (prefs.gui_tweaks & 64)
|
||||
if (!prefs.gui_ulist_icons)
|
||||
{
|
||||
nick = malloc (strlen (newuser->nick) + 2);
|
||||
nick[0] = newuser->prefix[0];
|
||||
@@ -378,8 +378,10 @@ fe_userlist_insert (session *sess, struct User *newuser, int row, int sel)
|
||||
: (NULL),
|
||||
-1);
|
||||
|
||||
if (prefs.gui_tweaks & 64)
|
||||
if (!prefs.gui_ulist_icons)
|
||||
{
|
||||
free (nick);
|
||||
}
|
||||
|
||||
/* is it me? */
|
||||
if (newuser->me && sess->gui->nick_box)
|
||||
|
||||
Reference in New Issue
Block a user