Skip to content

Commit

Permalink
resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
ThatDeparted2061 committed Jan 26, 2025
1 parent bc1cdd3 commit 2bfcd39
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/simulator/src/data.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import Vue from 'vue';
import { fullView } from './ux';
import { createSubCircuitPrompt } from './subcircuit';
import save from './data/save';
Expand Down Expand Up @@ -69,11 +70,15 @@ const logixFunction: LogixFunction = {

export default logixFunction;

// Hack to restart tour guide
/**
* Initializes the tour guide with a slight delay to ensure DOM is ready.
* @todo Refactor to use proper lifecycle hooks or event-based initialization
*/
function showTourGuideHelper(): void {
setTimeout(() => {
showTourGuide();
}, 100);
// Consider using Vue's nextTick or proper event listeners
Vue.nextTick(() => {
showTourGuide();
});
}

// Hack to call createNewCircuitScope with keyboard shortcut
Expand Down

0 comments on commit 2bfcd39

Please sign in to comment.