mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
fix: CB-2243 settings
This commit is contained in:
@@ -43,7 +43,7 @@ export class LocalizationService extends Bootstrap {
|
||||
}
|
||||
|
||||
get defaultLanguage(): string {
|
||||
if (this.pluginSettings.getValue('defaultLanguage')) {
|
||||
if (this.pluginSettings.isValueDefault('defaultLanguage')) {
|
||||
return this.deprecatedPluginSettings.getValue('defaultLanguage');
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ const equalConfigA = {
|
||||
'core.user': {
|
||||
defaultTheme: testValueA,
|
||||
} as IThemeSettings,
|
||||
plugin: {
|
||||
core: {
|
||||
theming: {
|
||||
defaultTheme: testValueA,
|
||||
} as IThemeSettings,
|
||||
@@ -46,7 +46,7 @@ const equalConfigB = {
|
||||
'core.user': {
|
||||
defaultTheme: testValueB,
|
||||
} as IThemeSettings,
|
||||
plugin: {
|
||||
core: {
|
||||
theming: {
|
||||
defaultTheme: testValueB,
|
||||
} as IThemeSettings,
|
||||
|
||||
@@ -26,7 +26,7 @@ export class ThemeSettingsService {
|
||||
readonly deprecatedSettings: PluginSettings<IThemeSettings>;
|
||||
|
||||
constructor(private readonly pluginManagerService: PluginManagerService) {
|
||||
this.settings = this.pluginManagerService.getPluginSettings('theming', defaultThemeSettings);
|
||||
this.settings = this.pluginManagerService.getCoreSettings('theming', defaultThemeSettings);
|
||||
this.deprecatedSettings = this.pluginManagerService.getCoreSettings('user', defaultThemeSettings);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user