mirror of
https://github.com/carlrobertoh/ProxyAI.git
synced 2026-05-21 11:05:59 +00:00
fix: compile error
This commit is contained in:
parent
30fa80ef96
commit
7ea1dd5d36
1 changed files with 3 additions and 2 deletions
|
|
@ -187,8 +187,9 @@ class SelectionTagPanel(
|
|||
fun getDefaultSelectionTagDetails(project: Project): TagDetails {
|
||||
val editor = getSelectedEditor(project)
|
||||
val selectionModel = editor?.selectionModel
|
||||
return if (selectionModel?.hasSelection() == true) {
|
||||
SelectionTagDetails((editor as? EditorEx)?.virtualFile, selectionModel)
|
||||
val file = (editor as? EditorEx)?.virtualFile
|
||||
return if (selectionModel?.hasSelection() == true && file != null) {
|
||||
SelectionTagDetails(file, selectionModel)
|
||||
} else {
|
||||
EmptyTagDetails()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue