From ee265169282710ff2c0fffb2aca9613c7b5f523d Mon Sep 17 00:00:00 2001
From: cirry <812852553@qq.com>
Date: Sun, 7 Jan 2024 14:16:07 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E5=8A=9F=E8=83=BD=E6=9B=B4=E6=96=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
README.md | 4 ++--
gradle.properties | 2 +-
.../wereadjetbrainsplugin/toolWindow/MyToolWindowFactory.kt | 4 ++--
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/README.md b/README.md
index e4bdd75..33e6a79 100644
--- a/README.md
+++ b/README.md
@@ -17,7 +17,7 @@
- [ ] Click the Watch button on the top of the [IntelliJ Platform Plugin Template][template] to be notified about releases containing new features and fixes.
-A WeChat Reading plugin supporting IDEA.
+A WeChat Reading plugin support IDEA.
Full WeChat Reading functionality is available, allowing navigation using the arrow keys for reading. Please adjust the window to a suitable size before use.
@@ -26,7 +26,7 @@ Full WeChat Reading functionality is available, allowing navigation using the ar
- Using the IDE built-in plugin system:
- Settings/Preferences > Plugins > Marketplace > Search for "wxreader-Jetbrains-Plugin" >
+ Settings/Preferences > Plugins > Marketplace > Search for "WeRead-Jetbrains-Plugin" >
Install
- Manually:
diff --git a/gradle.properties b/gradle.properties
index 9a64b02..a6aa53b 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -5,7 +5,7 @@ pluginGroup = com.github.cirry.wereadjetbrainsplugin
pluginName = Weread
pluginRepositoryUrl = https://github.com/cirry/wxreader-Jetbrains-Plugin
# SemVer format -> https://semver.org
-pluginVersion = 0.0.1
+pluginVersion = 0.0.2
# Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
pluginSinceBuild = 223
diff --git a/src/main/kotlin/com/github/cirry/wereadjetbrainsplugin/toolWindow/MyToolWindowFactory.kt b/src/main/kotlin/com/github/cirry/wereadjetbrainsplugin/toolWindow/MyToolWindowFactory.kt
index 6cd0fb8..ba5d2fb 100644
--- a/src/main/kotlin/com/github/cirry/wereadjetbrainsplugin/toolWindow/MyToolWindowFactory.kt
+++ b/src/main/kotlin/com/github/cirry/wereadjetbrainsplugin/toolWindow/MyToolWindowFactory.kt
@@ -20,14 +20,14 @@ class MyToolWindowFactory : ToolWindowFactory {
}
override fun createToolWindowContent(project: Project, toolWindow: ToolWindow) {
- val myToolWindow = MyToolWindow(toolWindow)
+ val myToolWindow = MyToolWindow()
val content = ContentFactory.getInstance().createContent(myToolWindow.getContent(), "", false)
toolWindow.contentManager.addContent(content)
}
override fun shouldBeAvailable(project: Project) = true
- class MyToolWindow(toolWindow: ToolWindow) {
+ class MyToolWindow() {
fun getContent() = JBPanel>().apply {
val noSupportLabel = JBLabel(MyBundle.message("noSupport"))
if (JBCefApp.isSupported()) {