mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
don't enable choose directory button in migrate mode
This commit is contained in:
@@ -76,7 +76,7 @@ public class DialogMigrateProfile {
|
|||||||
p.setOpaque(false);
|
p.setOpaque(false);
|
||||||
p.setBackgroundTexture(FSkin.getIcon(FSkin.Backgrounds.BG_TEXTURE));
|
p.setBackgroundTexture(FSkin.getIcon(FSkin.Backgrounds.BG_TEXTURE));
|
||||||
|
|
||||||
boolean isMigration = !StringUtils.isEmpty(forcedSrcDir);
|
final boolean isMigration = !StringUtils.isEmpty(forcedSrcDir);
|
||||||
|
|
||||||
// header
|
// header
|
||||||
p.add(new FLabel.Builder().text((isMigration ? "Migrate" : "Import") + " profile data").fontSize(15).build(), "center");
|
p.add(new FLabel.Builder().text((isMigration ? "Migrate" : "Import") + " profile data").fontSize(15).build(), "center");
|
||||||
@@ -177,8 +177,10 @@ public class DialogMigrateProfile {
|
|||||||
analyzer.execute();
|
analyzer.execute();
|
||||||
_analyzerActive = true;
|
_analyzerActive = true;
|
||||||
}
|
}
|
||||||
|
if (!isMigration) {
|
||||||
_btnChooseDir.setEnabled(true);
|
_btnChooseDir.setEnabled(true);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
analyzerStarter.execute();
|
analyzerStarter.execute();
|
||||||
}
|
}
|
||||||
@@ -428,7 +430,7 @@ public class DialogMigrateProfile {
|
|||||||
|
|
||||||
MigrationSourceAnalyzer.AnalysisCallback cb = new MigrationSourceAnalyzer.AnalysisCallback() {
|
MigrationSourceAnalyzer.AnalysisCallback cb = new MigrationSourceAnalyzer.AnalysisCallback() {
|
||||||
@Override
|
@Override
|
||||||
public boolean checkCancel() { try{Thread.sleep(1);}catch(InterruptedException e) {} return _cancel; }
|
public boolean checkCancel() { return _cancel; }
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void addOp(OpType type, File src, File dest) {
|
public void addOp(OpType type, File src, File dest) {
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ public enum VSubmenuDownloaders implements IVSubmenu<CSubmenuDownloaders> {
|
|||||||
private final FLabel btnDownloadPics = _makeButton("Download LQ Card Pictures");
|
private final FLabel btnDownloadPics = _makeButton("Download LQ Card Pictures");
|
||||||
private final FLabel btnDownloadQuestImages = _makeButton("Download Quest Images");
|
private final FLabel btnDownloadQuestImages = _makeButton("Download Quest Images");
|
||||||
private final FLabel btnReportBug = _makeButton("Report a Bug");
|
private final FLabel btnReportBug = _makeButton("Report a Bug");
|
||||||
private final FLabel btnImportPictures = _makeButton("Import Pictures");
|
private final FLabel btnImportPictures = _makeButton("Import Data");
|
||||||
private final FLabel btnHowToPlay = _makeButton("How To Play");
|
private final FLabel btnHowToPlay = _makeButton("How To Play");
|
||||||
private final FLabel btnDownloadPrices = _makeButton("Download Card Prices");
|
private final FLabel btnDownloadPrices = _makeButton("Download Card Prices");
|
||||||
private final FLabel btnLicensing = _makeButton("License Details");
|
private final FLabel btnLicensing = _makeButton("License Details");
|
||||||
@@ -79,7 +79,7 @@ public enum VSubmenuDownloaders implements IVSubmenu<CSubmenuDownloaders> {
|
|||||||
pnlContent.add(_makeLabel("Download up-to-date price list for in-game card shops."), constraintsLBL);
|
pnlContent.add(_makeLabel("Download up-to-date price list for in-game card shops."), constraintsLBL);
|
||||||
|
|
||||||
pnlContent.add(btnImportPictures, constraintsBTN);
|
pnlContent.add(btnImportPictures, constraintsBTN);
|
||||||
pnlContent.add(_makeLabel("Import card pictures from a local version of Forge."), constraintsLBL);
|
pnlContent.add(_makeLabel("Import data from a local directory."), constraintsLBL);
|
||||||
|
|
||||||
pnlContent.add(btnReportBug, constraintsBTN);
|
pnlContent.add(btnReportBug, constraintsBTN);
|
||||||
pnlContent.add(_makeLabel("Something broken?"), constraintsLBL);
|
pnlContent.add(_makeLabel("Something broken?"), constraintsLBL);
|
||||||
@@ -88,7 +88,7 @@ public enum VSubmenuDownloaders implements IVSubmenu<CSubmenuDownloaders> {
|
|||||||
pnlContent.add(_makeLabel("Rules of the Game."), constraintsLBL);
|
pnlContent.add(_makeLabel("Rules of the Game."), constraintsLBL);
|
||||||
|
|
||||||
pnlContent.add(btnLicensing, constraintsBTN);
|
pnlContent.add(btnLicensing, constraintsBTN);
|
||||||
pnlContent.add(_makeLabel("About Forge"), constraintsLBL);
|
pnlContent.add(_makeLabel("Forge legalese."), constraintsLBL);
|
||||||
|
|
||||||
scrContent.setBorder(null);
|
scrContent.setBorder(null);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user