feat: introduce ToolHub settings page stack

This commit is contained in:
7015725
2026-05-12 10:47:13 +08:00
parent 7b7fbdf9cf
commit a0b6b92f57
6 changed files with 204 additions and 16 deletions

View File

@@ -205,6 +205,9 @@ FloatBallAppWM.prototype.handlePanelBack = function(which, reason) {
if (this.state.addedViewer) {
var vt = String(this.state.viewerPanelType || w || "viewer");
if (vt === "tool_app" && this.state.toolAppActive && this.popToolAppPage) {
return this.popToolAppPage(reason || "back_key");
}
if (vt === "btn_editor") {
if (this.state.editingButtonIndex !== null && this.state.editingButtonIndex !== undefined) {
this.state.editingButtonIndex = null;
@@ -328,6 +331,9 @@ FloatBallAppWM.prototype.hideAllPanels = function() {
this.hideMainPanel();
this.hideSettingsPanel();
this.hideViewerPanel();
this.state.toolAppActive = false;
this.state.toolAppRoute = null;
this.state.toolAppNavStack = [];
this.hideMask();
this._clearHeavyCachesIfAllHidden("hideAllPanels");