Skip to content

Commit

Permalink
cleanning startup,
Browse files Browse the repository at this point in the history
  • Loading branch information
Pihen authored and Pihen committed Sep 2, 2021
1 parent 16a3321 commit c1a38ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/main/java/org/magic/api/main/MtgDesktopCompanion.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ public MtgDesktopCompanion() {

getEnabledPlugin(MTGCardsProvider.class).init();
getEnabledPlugin(MTGDao.class).init();
getEnabledPlugin(MTGCardsProvider.class).listEditions();

logger.info("Init "+MTGConstants.MTG_APP_NAME+" GUI");
} catch (Exception e) {
Expand Down
10 changes: 4 additions & 6 deletions src/main/java/org/magic/gui/dashlet/MkmOversightDashlet.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,21 +80,19 @@ public void initGUI()
}
});


UITools.initCardToolTipTable(table,0,null,null, new Callable<Void>()
{

@Override
public Void call() throws Exception {

String cardName = UITools.getTableSelection(table, 0);
String setName = UITools.getTableSelection(table, 1);

UITools.browse(MkmConstants.MKM_SITE_URL+"/en/Magic/Products/Singles/"+URLTools.encode(setName)+"/"+URLTools.encode(cardName));

UITools.browse(MkmConstants.MKM_SITE_URL+"/en/Magic/Products/Search?searchString="+URLTools.encode(cardName));
return null;
}

});

});

if (getProperties().size() > 0) {
var r = new Rectangle((int) Double.parseDouble(getString("x")),
Expand Down

0 comments on commit c1a38ee

Please sign in to comment.