mirror of
https://github.com/leporello-js/leporello-js
synced 2026-01-13 21:14:28 -08:00
reload app_window on every code execution
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import {exec, get_state, open_app_window} from '../index.js'
|
||||
import {exec, get_state, open_app_window, exec_and_reload_app_window} from '../index.js'
|
||||
import {Editor} from './editor.js'
|
||||
import {Files} from './files.js'
|
||||
import {CallTree} from './calltree.js'
|
||||
@@ -73,7 +73,7 @@ export class UI {
|
||||
el('a', {
|
||||
'class': 'statusbar_action first',
|
||||
href: 'javascript: void(0)',
|
||||
click: () => exec('clear_io_trace')
|
||||
click: () => this.clear_io_trace(),
|
||||
},
|
||||
'Clear IO trace (F6)'
|
||||
),
|
||||
@@ -196,6 +196,10 @@ export class UI {
|
||||
}
|
||||
}
|
||||
|
||||
clear_io_trace() {
|
||||
exec_and_reload_app_window('clear_io_trace')
|
||||
}
|
||||
|
||||
open_app_window() {
|
||||
this.toggle_open_app_window_tooltip(false)
|
||||
localStorage.onboarding_open_app_window = true
|
||||
|
||||
Reference in New Issue
Block a user