eurooffice should only get enabled on new instances

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: Simon L. <szaimen@e.mail.de>
This commit is contained in:
Simon L.
2026-06-24 14:58:40 +02:00
parent 5f317a2b17
commit 6fc913bc41
+8 -1
View File
@@ -102,7 +102,8 @@ class ConfigurationManager
}
public bool $isEuroofficeEnabled {
get => $this->get('isEuroofficeEnabled', true);
// Only enabled if no other office suite is enabled.
get => !$this->isOtherOfficeThanEuroOfficeEnabled() && $this->get('isEuroofficeEnabled', true);
set { $this->set('isEuroofficeEnabled', $value); }
}
@@ -531,6 +532,12 @@ class ConfigurationManager
return '';
}
// Helper function for EuroOffice to make sure that it does not
// get enabled on existing instances after updating the default
private function isOtherOfficeThanEuroOfficeEnabled() : bool {
return $this->isCollaboraEnabled || $this->isOnlyofficeEnabled;
}
private function isx64Platform() : bool {
if (php_uname('m') === 'x86_64') {
return true;