|
@@ -48,6 +48,7 @@ import net.miginfocom.swing.MigLayout;
|
48
|
48
|
import uk.co.md87.evetool.Account;
|
49
|
49
|
import uk.co.md87.evetool.AccountManager;
|
50
|
50
|
import uk.co.md87.evetool.ApiFactory;
|
|
51
|
+import uk.co.md87.evetool.ConfigManager;
|
51
|
52
|
import uk.co.md87.evetool.api.EveApi;
|
52
|
53
|
import uk.co.md87.evetool.ui.ContentPanel.Page;
|
53
|
54
|
import uk.co.md87.evetool.ui.ContextPanel;
|
|
@@ -76,15 +77,17 @@ public class OverviewPage extends Page implements AccountManager.AccountListener
|
76
|
77
|
private final MainWindow window;
|
77
|
78
|
private final ApiFactory factory;
|
78
|
79
|
private final AccountManager manager;
|
|
80
|
+ private final ConfigManager config;
|
79
|
81
|
private final Map<Account, EveApi> apis = new HashMap<Account, EveApi>();
|
80
|
82
|
private final Map<Account, JPanel> panels = new HashMap<Account, JPanel>();
|
81
|
83
|
private final List<AccountChar> chars = new ArrayList<AccountChar>();
|
82
|
84
|
|
83
|
85
|
public OverviewPage(final MainWindow window, final AccountManager manager,
|
84
|
|
- final ApiFactory factory) {
|
|
86
|
+ final ApiFactory factory, final ConfigManager config) {
|
85
|
87
|
this.window = window;
|
86
|
88
|
this.factory = factory;
|
87
|
89
|
this.manager = manager;
|
|
90
|
+ this.config = config;
|
88
|
91
|
|
89
|
92
|
setLayout(new MigLayout("fillx"));
|
90
|
93
|
|
|
@@ -152,8 +155,10 @@ public class OverviewPage extends Page implements AccountManager.AccountListener
|
152
|
155
|
|
153
|
156
|
panels.put(account, panel);
|
154
|
157
|
apis.put(account, account.getApi(factory));
|
|
158
|
+
|
|
159
|
+ int selectChar = config.getGeneralSettingInt("selectedChar", -1);
|
155
|
160
|
|
156
|
|
- new AccountUpdateWorker(this, apis.get(account), panel).execute();
|
|
161
|
+ new AccountUpdateWorker(this, window, apis.get(account), panel, selectChar).execute();
|
157
|
162
|
}
|
158
|
163
|
|
159
|
164
|
/** {@inheritDoc} */
|