Starting from 2021-07-01, all LRZ GitLab users will be required to explicitly accept the GitLab Terms of Service. Please see the detailed information at https://doku.lrz.de/display/PUBLIC/GitLab and make sure that your projects conform to the requirements.

Commit a34323cb authored by Stefan Schuhbaeck's avatar Stefan Schuhbaeck
Browse files

fix unneded pop up if all scenarios are up to date.

parent a63d8c26
......@@ -128,7 +128,7 @@ public class ActionLoadProject extends AbstractAction {
// results from migration assistant if he was active
MigrationResult stats = project.getMigrationStats();
if (stats.total > 0 || stats.notmigratable > 0) { // scenarios: [0] total, [1] legacy'ed, [2] unmigratable
if (stats.legacy > 0 || stats.notmigratable > 0) { // scenarios: [0] total, [1] legacy'ed, [2] unmigratable
SwingWorker<Void, Void> worker = new SwingWorker<Void, Void>() {
@Override
public Void doInBackground() {
......@@ -162,6 +162,8 @@ public class ActionLoadProject extends AbstractAction {
}
};
worker.execute();
} else {
logger.info("Nothing to migrate all up to date " + stats);
}
} catch (Exception e) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment