Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxKless committed Feb 1, 2024
1 parent 5ff4dc6 commit c6face8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ abstract class NxGraphBrowserBase(protected val project: Project) : Disposable {
browser.cefBrowser
)
browser.setPageBackgroundColor(backgroundColor)
browser.setOpenLinksInExternalBrowser(true)

queryMessenger.addHandler { msg ->
when (msg) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,13 +170,14 @@ open class NxGraphServer(
// wait for process to start - signified by logging the port
val reader = process.inputStream.bufferedReader()
var stopWaiting = false
var line: String? = null
line = reader.readLineAsync()

while (!stopWaiting) {
val line = reader.readLineAsync()?.trim()?.lowercase()

if (line != null && line.contains(port.toString())) {
stopWaiting = true
}
line = reader.readLineAsync()?.trim()?.lowercase()
}

process
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ class ProjectDetailsBrowser(project: Project, private val file: VirtualFile) :
init {
try {
loadHtml()
registerInteractionEventHandler(browser)
} catch (e: Throwable) {
logger<ProjectDetailsBrowser>().debug(e.message)
}
Expand Down Expand Up @@ -216,6 +215,7 @@ class ProjectDetailsBrowser(project: Project, private val file: VirtualFile) :
ApplicationManager.getApplication().invokeLater {
isShowingPDV = true
browser.loadHTML(htmlText)
registerInteractionEventHandler(browser)

nxProjectName?.also { loadProjectDetails(it) }
}
Expand Down

0 comments on commit c6face8

Please sign in to comment.