mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-09-03 20:52:57 -05:00
1) Enable the 'Configure' and 'View log' menu option when the server taking longer than usual time to start.
2) When an error occurs from the backend, the configure window opens and if the user has changed the setting of the port, it won't take any effect as we have retrieved the value of the port at the start of the runtime. 3) Added logic to identify the specified fixed port is already in use. Throw the error before starting the pgAdmin server. Fixes #5751
This commit is contained in:
@@ -117,7 +117,6 @@ void FloatingWindow::enableViewLogOption()
|
||||
m_logAction->setEnabled(true);
|
||||
}
|
||||
|
||||
|
||||
// Disable the View Log option
|
||||
void FloatingWindow::disableViewLogOption()
|
||||
{
|
||||
@@ -125,6 +124,20 @@ void FloatingWindow::disableViewLogOption()
|
||||
m_logAction->setEnabled(false);
|
||||
}
|
||||
|
||||
// Enable the configure option
|
||||
void FloatingWindow::enableConfigOption()
|
||||
{
|
||||
if (m_configAction != Q_NULLPTR)
|
||||
m_configAction->setEnabled(true);
|
||||
}
|
||||
|
||||
// Disable the configure option
|
||||
void FloatingWindow::disableConfigOption()
|
||||
{
|
||||
if (m_configAction != Q_NULLPTR)
|
||||
m_configAction->setEnabled(false);
|
||||
}
|
||||
|
||||
void FloatingWindow::closeEvent(QCloseEvent * event)
|
||||
{
|
||||
// Emit the signal to shut down the python server.
|
||||
|
||||
Reference in New Issue
Block a user