@@ -32,7 +32,8 @@ kpxcEvent.showStatus = async function(tab, configured, internalPoll) {
3232 encryptionKeyUnrecognized : keepass . isEncryptionKeyUnrecognized ,
3333 associated : keepass . isAssociated ( ) ,
3434 error : errorMessage || null ,
35- usernameFieldDetected : page . tabs [ tab . id ] . usernameFieldDetected
35+ usernameFieldDetected : page . tabs [ tab . id ] . usernameFieldDetected ,
36+ showGettingStartedGuideAlert : page . settings . showGettingStartedGuideAlert ,
3637 } ;
3738} ;
3839
@@ -202,6 +203,13 @@ kpxcEvent.getIsKeePassXCAvailable = async function() {
202203 return keepass . isKeePassXCAvailable ;
203204} ;
204205
206+ kpxcEvent . hideGettingStartedGuideAlert = async function ( tab ) {
207+ const settings = await kpxcEvent . onLoadSettings ( ) ;
208+ settings . showGettingStartedGuideAlert = false ;
209+
210+ await kpxcEvent . onSaveSettings ( tab , settings ) ;
211+ } ;
212+
205213// All methods named in this object have to be declared BEFORE this!
206214kpxcEvent . messageHandlers = {
207215 'add_credentials' : keepass . addCredentials ,
@@ -221,6 +229,7 @@ kpxcEvent.messageHandlers = {
221229 'get_status' : kpxcEvent . onGetStatus ,
222230 'get_tab_information' : kpxcEvent . onGetTabInformation ,
223231 'get_totp' : keepass . getTotp ,
232+ 'hide_getting_started_guide_alert' : kpxcEvent . hideGettingStartedGuideAlert ,
224233 'init_http_auth' : kpxcEvent . initHttpAuth ,
225234 'is_connected' : kpxcEvent . getIsKeePassXCAvailable ,
226235 'load_keyring' : kpxcEvent . onLoadKeyRing ,
0 commit comments