mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) Move theme from ConfigNotifier to ThemeNotifier
Summary: This reverts the behavior of onOptions, which had unintentionally changed recently and no longer matched the API documentation. Test Plan: Existing tests. Reviewers: jarek Reviewed By: jarek Subscribers: paulfitz Differential Revision: https://phab.getgrist.com/D4064
This commit is contained in:
@@ -186,10 +186,12 @@ export class HomeModelImpl extends Disposable implements HomeModel, ViewSettings
|
||||
this._updateWorkspaces().catch(reportError)));
|
||||
|
||||
// Defer home plugin initialization
|
||||
const pluginManager = new HomePluginManager(
|
||||
_app.topAppModel.plugins,
|
||||
_app.topAppModel.getUntrustedContentOrigin()!,
|
||||
clientScope);
|
||||
const pluginManager = new HomePluginManager({
|
||||
localPlugins: _app.topAppModel.plugins,
|
||||
untrustedContentOrigin: _app.topAppModel.getUntrustedContentOrigin()!,
|
||||
clientScope,
|
||||
theme: _app.currentTheme,
|
||||
});
|
||||
const importSources = ImportSourceElement.fromArray(pluginManager.pluginsList);
|
||||
this.importSources.set(importSources);
|
||||
|
||||
|
||||
@@ -272,8 +272,8 @@ export interface CustomViewSectionDef {
|
||||
/**
|
||||
* If set, render the widget after `grist.ready()`.
|
||||
*
|
||||
* Currently, this is only used to defer rendering a widget until it has had
|
||||
* a chance to apply the Grist theme.
|
||||
* This is used to defer showing a widget on initial load until it has finished
|
||||
* applying the Grist theme.
|
||||
*/
|
||||
renderAfterReady: modelUtil.KoSaveableObservable<boolean>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user