Hide tunnel actions while TCG is starting

This commit is contained in:
zzz
2019-10-11 17:12:33 +00:00
parent 3244adfcd2
commit 5734760d58
2 changed files with 5 additions and 3 deletions

View File

@ -2,6 +2,9 @@
* Save state in background thread (tickets #2595, #2632)
* Fix ISE in language dialog (ticket #2631)
* Fix NPE in create tunnel (ticket #2629)
* Update logo after router killed in background
* Fix message in tunnels tabs when tunnels not up yet
* Hide tunnel actions while TCG is starting
0.9.42 / 2019-08-28
* Possible fix for tunnel edit dialog crash (ticket #2598)

View File

@ -70,12 +70,11 @@ public class TunnelsContainer extends Fragment implements
setHasOptionsMenu(true);
}
private boolean showActions() {
private static boolean showActions() {
RouterContext rCtx = Util.getRouterContext();
TunnelControllerGroup tcg = TunnelControllerGroup.getInstance();
return rCtx != null && tcg != null &&
(tcg.getState() == ClientAppState.STARTING ||
tcg.getState() == ClientAppState.RUNNING);
tcg.getState() == ClientAppState.RUNNING;
}
@Override