cleanUp log
This commit is contained in:
1 parent
c9541eb618
commit
bd01936bf6
3 files changed
+7
No files matched your search
@@ -40,6 +40,7 @@ dependencies {
|
|||||||
// Logging
|
// Logging
|
||||||
implementation("org.apache.logging.log4j:log4j-api:2.24.3")
|
implementation("org.apache.logging.log4j:log4j-api:2.24.3")
|
||||||
implementation("org.apache.logging.log4j:log4j-core:2.24.3")
|
implementation("org.apache.logging.log4j:log4j-core:2.24.3")
|
||||||
|
implementation("org.apache.logging.log4j:log4j-slf4j2-impl:2.24.3")
|
||||||
}
|
}
|
||||||
|
|
||||||
compose.desktop {
|
compose.desktop {
|
||||||
@@ -48,6 +49,8 @@ compose.desktop {
|
|||||||
|
|
||||||
// Allow access to AWT Classes to control the window
|
// Allow access to AWT Classes to control the window
|
||||||
jvmArgs("--add-opens", "java.desktop/com.apple.eawt=ALL-UNNAMED")
|
jvmArgs("--add-opens", "java.desktop/com.apple.eawt=ALL-UNNAMED")
|
||||||
|
// Skiko / JNativeHook load native libraries via System.load() — JDK 22+ requires explicit native access
|
||||||
|
jvmArgs("--enable-native-access=ALL-UNNAMED")
|
||||||
|
|
||||||
nativeDistributions {
|
nativeDistributions {
|
||||||
targetFormats(TargetFormat.Dmg)
|
targetFormats(TargetFormat.Dmg)
|
||||||
|
|||||||
@@ -65,6 +65,7 @@ fun main() {
|
|||||||
onSettings = { isSettingsVisible = true },
|
onSettings = { isSettingsVisible = true },
|
||||||
onExit = { exitApplication() },
|
onExit = { exitApplication() },
|
||||||
)
|
)
|
||||||
|
logger.info("AnyTask started. Press ${HotkeyManager.DESCRIPTION} to open the task window.")
|
||||||
}
|
}
|
||||||
|
|
||||||
DisposableEffect(Unit) {
|
DisposableEffect(Unit) {
|
||||||
|
|||||||
@@ -15,6 +15,9 @@ import java.util.logging.Logger
|
|||||||
*/
|
*/
|
||||||
object HotkeyManager {
|
object HotkeyManager {
|
||||||
|
|
||||||
|
/** Human-readable description of the hotkey combination handled by [isHotkey]. */
|
||||||
|
const val DESCRIPTION: String = "Ctrl+Shift+Space"
|
||||||
|
|
||||||
private val logger = LogManager.getLogger(HotkeyManager::class.java)
|
private val logger = LogManager.getLogger(HotkeyManager::class.java)
|
||||||
private var listener: NativeKeyListener? = null
|
private var listener: NativeKeyListener? = null
|
||||||
|
|
||||||
|
|||||||