mirror of
https://github.com/tonikelope/megabasterd.git
synced 2025-05-13 12:57:11 +02:00
1.14c
-Fix update max transferences during running.
This commit is contained in:
parent
94e6f3e60f
commit
fe7364e3e7
@ -623,6 +623,10 @@ public final class MainPanelView extends javax.swing.JFrame {
|
||||
|
||||
swingReflectionInvoke("setForeground", global_speed_up_label, _main_panel.isLimit_upload_speed()?new Color(255,0,0):new Color(0,128,255));
|
||||
|
||||
_main_panel.getDownload_manager().setMax_running_trans(_main_panel.getMax_dl());
|
||||
|
||||
_main_panel.getUpload_manager().setMax_running_trans(_main_panel.getMax_ul());
|
||||
|
||||
_main_panel.getDownload_manager().secureNotify();
|
||||
|
||||
_main_panel.getUpload_manager().secureNotify();
|
||||
|
@ -27,7 +27,7 @@ abstract public class TransferenceManager implements Runnable, SecureNotifiable
|
||||
private final javax.swing.JButton _close_all_button;
|
||||
private final javax.swing.JButton _pause_all_button;
|
||||
private final javax.swing.MenuElement _clean_all_menu;
|
||||
private final int _max_running_trans;
|
||||
private int _max_running_trans;
|
||||
private final MainPanel _main_panel;
|
||||
private final Object _secure_notify_lock;
|
||||
private boolean _notified;
|
||||
@ -99,6 +99,11 @@ abstract public class TransferenceManager implements Runnable, SecureNotifiable
|
||||
_pre_count+=pre_count;
|
||||
}
|
||||
|
||||
public void setMax_running_trans(int _max_running_trans) {
|
||||
this._max_running_trans = _max_running_trans;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public void secureNotify()
|
||||
|
Loading…
x
Reference in New Issue
Block a user