forked from j62/ctbrec
Don't show login, if credentails are missing
This commit is contained in:
parent
11f2a3ef8d
commit
9cf5e4c41c
|
@ -71,8 +71,12 @@ public class LiveJasminTab extends ThumbOverviewTab {
|
|||
|
||||
@Override
|
||||
protected void onFail(WorkerStateEvent event) {
|
||||
status.setText("Login failed");
|
||||
super.onFail(event);
|
||||
if(Config.getInstance().getSettings().livejasminBetaAcknowledged) {
|
||||
status.setText("Login failed");
|
||||
grid.getChildren().remove(acknowledge);
|
||||
grid.getChildren().remove(createAccount);
|
||||
super.onFail(event);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -42,7 +42,7 @@ public class LiveJasminUpdateService extends PaginatedScheduledService {
|
|||
@Override
|
||||
public List<Model> call() throws IOException, NotLoggedInExcetion {
|
||||
//String _url = url + ((page-1) * 36); // TODO find out how to switch pages
|
||||
if(!SiteUiFactory.getUi(liveJasmin).login()) {
|
||||
if(!liveJasmin.credentialsAvailable() || !SiteUiFactory.getUi(liveJasmin).login()) {
|
||||
throw new NotLoggedInExcetion();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue