Fixed an issue where the dock layout was not saved upon closing a tab. #7919

This commit is contained in:
Pravesh Sharma 2024-09-27 16:22:48 +05:30 committed by GitHub
parent f0ecc95ca9
commit 535c7eeef8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 8 deletions

View File

@ -119,15 +119,9 @@ def store(setting=None, value=None):
success = 0
errormsg = str(e)
try:
info = traceback.format_exc()
except Exception as e:
info = str(e)
return make_json_response(success=success,
errormsg=errormsg,
info=info,
result=request.form)
info=gettext("Setting stored"))
@blueprint.route("/layout", methods=['DELETE'], endpoint='reset_layout')

View File

@ -89,7 +89,7 @@ export class LayoutDocker {
if(panelData.internal?.manualClose && !force) {
this.eventBus.fireEvent(LAYOUT_EVENTS.CLOSING, panelId);
} else {
this.layoutObj.dockMove(panelData, 'remove');
this.layoutObj.dockMove(panelData, null, 'remove');
// rc-dock is not firing the "active" event after a tab is removed
// and another is focussed. here we try get the new active id and
// manually fire the active event