1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

Fix download led among different sessions, just use are_there_downloads().

It is a partial revert of commit d14f79eb2c.
Most introduced stuff was useless.
This commit is contained in:
Laurent MONIN 2007-11-07 14:01:10 +01:00
parent b3cfede1c1
commit 9297853d20
3 changed files with 2 additions and 11 deletions

View File

@ -279,7 +279,7 @@ update_download_led(struct session *ses)
{
struct session_status *status = &ses->status;
if (status->downloads_in_progress) {
if (are_there_downloads()) {
unsigned char led = get_led_value(status->download_led);
switch (led) {

View File

@ -136,11 +136,6 @@ abort_download(struct file_download *file_download)
* download dialog code potentially could access free()d memory. */
assert(!is_object_used(file_download));
#endif
struct session *ses = file_download->ses;
struct session_status *status = &ses->status;
status->downloads_in_progress = 0;
done_download_display(file_download);
if (file_download->ses)
@ -340,8 +335,6 @@ static void
download_data_store(struct download *download, struct file_download *file_download)
{
struct terminal *term = file_download->term;
struct session *ses = file_download->ses;
struct session_status *status = &ses->status;
if (!term) {
/* No term here, so no beep. --Zas */
@ -349,8 +342,7 @@ download_data_store(struct download *download, struct file_download *file_downlo
return;
}
status->downloads_in_progress = is_in_progress_state(download->state);
if (status->downloads_in_progress) {
if (is_in_progress_state(download->state)) {
if (file_download->dlg_data)
redraw_dialog(file_download->dlg_data, 1);
return;

View File

@ -111,7 +111,6 @@ struct session_status {
/** Is processing file requests. */
unsigned int processing_file_requests:1;
unsigned int show_tabs_bar_at_top:1;
unsigned int downloads_in_progress:1;
};
enum insert_mode {