optimize load path. present menu on version change for changelog
This commit is contained in:
parent
c46f88b412
commit
b45e2ba9b4
3 changed files with 18 additions and 10 deletions
|
|
@ -25,7 +25,7 @@ import { settings as set_ctrl } from '../conf/manager.js';
|
|||
import { settingsOps } from '../conf/settings.js';
|
||||
import { slider } from '../slider.js';
|
||||
import { space } from '../../../moto/space.js';
|
||||
import { VIEWS, MODES, SEED } from '../../core/consts.js';
|
||||
import { LAST, MODES, SEED, VIEWS } from '../../core/consts.js';
|
||||
|
||||
import STACKS from '../stacks.js';
|
||||
|
||||
|
|
@ -77,7 +77,11 @@ function checkSeed(then) {
|
|||
});
|
||||
return true;
|
||||
}
|
||||
} else if (sdb[LAST] !== version) {
|
||||
sdb[LAST] = version;
|
||||
api.help.show();
|
||||
}
|
||||
then();
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
@ -535,6 +539,6 @@ export function init_input() {
|
|||
};
|
||||
|
||||
return new Promise(resolve => {
|
||||
api.space.restore(resolve) || checkSeed(resolve) || resolve();
|
||||
api.space.restore(() => checkSeed(resolve));
|
||||
});
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue