Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XKit Preferences: Cancel first-install tour on any successful click #2181

Merged
merged 1 commit into from
Dec 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading