File tree Expand file tree Collapse file tree
lib/Service/IdentifyMethod Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88
99namespace OCA \Libresign \Service \IdentifyMethod ;
1010
11- use OCA \Libresign \AppInfo \Application ;
1211use OCA \Libresign \Db \IdentifyMethodMapper ;
1312use OCA \Libresign \Exception \LibresignException ;
1413use OCA \Libresign \Helper \JSActions ;
@@ -161,10 +160,7 @@ public function getSettings(): array {
161160 }
162161
163162 private function isEnabledByDefault (): bool {
164- $ config = $ this ->identifyService ->getAppConfig ()->getValueArray (Application::APP_ID , 'identify_methods ' , []);
165- if (json_last_error () !== JSON_ERROR_NONE || !is_array ($ config )) {
166- return true ;
167- }
163+ $ config = $ this ->identifyService ->getSavedSettings ();
168164
169165 // Remove not enabled
170166 $ config = array_filter ($ config , fn ($ i ) => isset ($ i ['enabled ' ]) && $ i ['enabled ' ] ? true : false );
You can’t perform that action at this time.
0 commit comments