mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Have the runtime check in a loop to see if the app server is up before
opening the browser window.
This commit is contained in:
@@ -32,10 +32,9 @@
|
||||
|
||||
|
||||
// Constructor
|
||||
BrowserWindow::BrowserWindow(quint16 port)
|
||||
BrowserWindow::BrowserWindow(QString url)
|
||||
{
|
||||
// Setup the URL the browser will connect to
|
||||
m_appServerUrl = QString("http://localhost:%1").arg(port);
|
||||
m_appServerUrl = url;
|
||||
|
||||
// Setup the UI
|
||||
createActions();
|
||||
@@ -54,7 +53,7 @@ BrowserWindow::BrowserWindow(quint16 port)
|
||||
// Display the app
|
||||
m_initialLoad = true;
|
||||
m_loadAttempt = 1;
|
||||
webView->setUrl(QString("http://localhost/:%1").arg(9876));
|
||||
webView->setUrl(m_appServerUrl);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user