pull/1/head
yflory 2021-02-08 11:40:52 +01:00
parent 2756e1f2cd
commit 69c6b6fcfd
1 changed files with 4 additions and 2 deletions

View File

@ -2107,11 +2107,13 @@ define([
var privateData = metadataMgr.getPrivateData();
if (privateData.offline) {
metadataMgr.onChange(function () {
var onChange = function () {
var privateData = metadataMgr.getPrivateData();
if (privateData.offline) { return; }
UIElements.getPadCreationScreen(common, cfg, appCfg, cb);
});
metadataMgr.off('change', onChange);
};
metadataMgr.onChange(onChange);
return;
}