File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 1212use OCA \Libresign \AppInfo \Application ;
1313use OCA \Libresign \Handler \CertificateEngine \CertificateEngineFactory ;
1414use OCP \App \IAppManager ;
15+ use OCP \AppFramework \Services \IInitialState ;
1516use OCP \EventDispatcher \Event ;
1617use OCP \EventDispatcher \IEventListener ;
1718use OCP \Util ;
@@ -23,6 +24,7 @@ class LoadAdditionalListener implements IEventListener {
2324 public function __construct (
2425 private IAppManager $ appManager ,
2526 private CertificateEngineFactory $ certificateEngineFactory ,
27+ private IInitialState $ initialState ,
2628 ) {
2729 }
2830 #[\Override]
@@ -40,6 +42,7 @@ public function handle(Event $event): void {
4042 }
4143
4244 if (class_exists ('\OCA\Files\App ' )) {
45+ $ this ->initialState ->provideInitialState ('certificate_ok ' , true );
4346 Util::addInitScript (Application::APP_ID , 'libresign-init ' );
4447 }
4548 }
You can’t perform that action at this time.
0 commit comments