Fix saving settings for sites that inherit configurations from a different site

This commit is contained in:
Tamius Han 2025-04-28 01:38:13 +02:00
parent e67b5a227f
commit 77fcced776
2 changed files with 3 additions and 1 deletions

View File

@ -437,6 +437,7 @@ export default {
switch (componentValue) { switch (componentValue) {
case 'fs': case 'fs':
return 'fullscreen only'; return 'fullscreen only';
case 'enabled':
case 'theater': case 'theater':
return 'where possible'; return 'where possible';
case 'disabled': case 'disabled':

View File

@ -368,7 +368,8 @@ export class SiteSettings {
this.settings.active.sites[this.site].type = 'unknown'; this.settings.active.sites[this.site].type = 'unknown';
} else { } else {
if (!this.settings.active.sites[this.site] || this.settings.active.sites[this.site].autocreated) { if (!this.settings.active.sites[this.site] || this.settings.active.sites[this.site].autocreated) {
this.settings.active.sites[this.site] = _cp(this.settings.active.sites['@empty']); this.settings.active.sites[this.site] = _cp(this.data);
this.settings.active.sites[this.site].type = 'user-defined';
} }
} }