Ext.NET
Ext.NET copied to clipboard
Ext.Net.Desktop windows do cannot be shown back when closed
Found: Ext.NET 5.2.0 Ext.NET forum thread: Desktop window when data loads to content region
Looks like the code splitting from #1488 also left away a bit of custom functionality that addressed issues with Desktop while closing and re-showing module windows.
The following override regains the behavior, instead of overriding the whole method, just tampering with the window to retain its old behavior in case it is a close-action-hide window:
Ext.define("gh1821", {
override: "Ext.ux.desktop.Desktop",
createWindow: function () {
var me = this,
win = me.callParent(arguments);
if (win.closeAction == "hide") {
win.doClose = Ext.window.Window.prototype.doClose;
win.on("close", function (win) {
this.onWindowClose(win);
}, this);
}
return win;
}
})