Skip to content

Commit

Permalink
XKit Preferences: Cancel first-install tour on any successful click (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
marcustyphoon authored Dec 22, 2024
1 parent e7880d9 commit 5e0ee64
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Extensions/xkit_preferences.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//* TITLE XKit Preferences **//
//* VERSION 7.7.1 **//
//* VERSION 7.7.2 **//
//* DESCRIPTION Lets you customize XKit **//
//* DEVELOPER new-xkit **//

Expand Down Expand Up @@ -680,14 +680,16 @@ XKit.extensions.xkit_preferences = new Object({
$("#xkit-control-panel-shadow").fadeIn('slow');
$("#xkit-control-panel-shadow").click(XKit.extensions.xkit_preferences.close);

if (XKit.storage.get("xkit_preferences", "shown_welcome_bubble") !== "true") {
XKit.storage.set("xkit_preferences", "shown_welcome_bubble", "true");
}

if (XKit.extensions.xkit_preferences.bubble_tour_mode === true) {

XKit.extensions.xkit_preferences.bubble_tour_mode = false;
$("#xkit-welcoming-bubble").remove();
$("#xkit-welcoming-bubble-shadow").remove();

XKit.storage.set("xkit_preferences", "shown_welcome_bubble", "true");

XKit.window.show("Welcome to the control panel!",
"<b>This is the My XKit panel.</b><br/>This is where you customize your XKit.<br/>" +
"You can turn on/off extensions or change their settings here.<br/><br/>" +
Expand Down

0 comments on commit 5e0ee64

Please sign in to comment.