Skip to content

Commit

Permalink
fixes #81
Browse files Browse the repository at this point in the history
  • Loading branch information
MohammadMD1383 committed May 22, 2023
1 parent d516492 commit 1bb8361
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ tasks {
<li><b>Bug Fix</b>: #74 JITRefactoring bug fixed (Java)</li>
<li><b>Bug Fix</b>: #75 Nightly builds were considered as older versions</li>
<li><b>Bug Fix</b>: #78 delete file is turned off</li>
<li><b>Bug Fix</b>: #81 temporary file dialog won't be cancelled on cancel button press</li>
</ul>
<div>
To install nightly builds use <b>Download And Install Nightly Build</b> Action
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,11 @@ class CreateTemporaryFileAction : ActionBase(), DumbAware {
val fileName = showInputDialog(
project,
"Create Temporary File",
).let { if (it.isNullOrBlank()) "Temporary File" else it }
)?.ifBlank { "Temporary File" } ?: return

FileEditorManager.getInstance(project).openTextEditor(
OpenFileDescriptor(project, MemoryMappedVirtualFile(fileName)),
true
)
}

context (LazyEventContext)
override fun isEnabled() = hasEditor
}

0 comments on commit 1bb8361

Please sign in to comment.