Report layouts selected through imported settings to the worker
This commit is contained in:
@@ -1669,7 +1669,10 @@ function applyAppearance() {
|
||||
const desiredLayout=s.layout || 'classic';
|
||||
if(root.dataset.layout!==desiredLayout && !Lazy.loaded('layout:'+desiredLayout)) {
|
||||
Lazy.load('layout:'+desiredLayout).then(()=>{if((data.settings.layout||'classic')===desiredLayout)applyAppearance();}).catch(error=>toast(error.message));
|
||||
} else root.dataset.layout=desiredLayout;
|
||||
} else {
|
||||
root.dataset.layout=desiredLayout;
|
||||
if(Lazy.layout!==desiredLayout) { Lazy.layout=desiredLayout; Lazy.reportLayout?.(); }
|
||||
}
|
||||
}
|
||||
function fmtBytes(n) {
|
||||
if (!n) return '0 B';
|
||||
|
||||
Reference in New Issue
Block a user