mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-13 02:23:01 +01:00
fixes
This commit is contained in:
parent
f6a6aecaf5
commit
c25296e65a
@ -17,7 +17,6 @@
|
||||
|
||||
extern char *DATA_FILE;
|
||||
extern int store_data(Tox *m, char *path);
|
||||
extern int num_groupchats;
|
||||
|
||||
extern FileSender file_senders[MAX_FILES];
|
||||
extern ToxicFriend friends[MAX_FRIENDS_NUM];
|
||||
@ -184,7 +183,7 @@ static void chat_onFileControl(ToxWindow *self, Tox *m, int num, uint8_t receive
|
||||
wprintw(ctx->history, "File transfer for '%s' accepted.\n", filename);
|
||||
break;
|
||||
case TOX_FILECONTROL_PAUSE:
|
||||
wprintw(ctx->history, "File transfer for '%s' paused.\n", filename);
|
||||
// wprintw(ctx->history, "File transfer for '%s' paused.\n", filename);
|
||||
break;
|
||||
case TOX_FILECONTROL_KILL:
|
||||
wprintw(ctx->history, "File transfer for '%s' failed.\n", filename);
|
||||
|
@ -332,12 +332,10 @@ static void load_data(Tox *m, char *path)
|
||||
tox_load(m, buf, len);
|
||||
|
||||
uint32_t i = 0;
|
||||
|
||||
uint8_t name[TOX_MAX_NAME_LENGTH];
|
||||
while (tox_get_name(m, i, name) != -1) {
|
||||
on_friendadded(m, i);
|
||||
i++;
|
||||
}
|
||||
|
||||
while (tox_get_name(m, i, name) != -1)
|
||||
on_friendadded(m, i++);
|
||||
|
||||
free(buf);
|
||||
fclose(fd);
|
||||
|
@ -13,7 +13,6 @@ extern char *DATA_FILE;
|
||||
|
||||
static ToxWindow windows[MAX_WINDOWS_NUM];
|
||||
static ToxWindow *active_window;
|
||||
static int num_windows;
|
||||
|
||||
extern ToxWindow *prompt;
|
||||
|
||||
@ -359,4 +358,4 @@ int num_active_windows(void)
|
||||
}
|
||||
|
||||
return count;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user