fix: prevent closing submit panel

This commit is contained in:
Johannes Frohnmeyer 2024-05-29 13:44:38 +02:00
parent 2619a42f9e
commit cd86b91b10
Signed by: Johannes
GPG Key ID: E76429612C2929F4
2 changed files with 3 additions and 2 deletions

View File

@ -13,7 +13,6 @@ You can download the plugin from the [JetBrains Marketplace](https://plugins.jet
<!-- Note to writers: A copy of the feature list exists in plugin.xml, please also add your changes there -->
## Potential future features
- Prevent closing submit panel
- Settings UI (login, PDF mode, ...)
- Display how much time is left in a contest or whether it's already over
- Implement reading detailed results

View File

@ -24,7 +24,9 @@ class SDToolWindowFactory : ToolWindowFactory, DumbAware {
}
val submitPanel = SDSubmitPanel(project)
val submitContent = contentManager.factory.createContent(submitPanel.component, "Submit", false)
val submitContent = contentManager.factory.createContent(submitPanel.component, "Submit", false).apply {
isCloseable = false
}
Disposer.register(toolWindow.disposable, submitPanel)
fun showSubmitContent() {