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
|
||||
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-slf4j2-impl:2.24.3")
|
||||
}
|
||||
|
||||
compose.desktop {
|
||||
@@ -48,6 +49,8 @@ compose.desktop {
|
||||
|
||||
// Allow access to AWT Classes to control the window
|
||||
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 {
|
||||
targetFormats(TargetFormat.Dmg)
|
||||
|
||||
@@ -65,6 +65,7 @@ fun main() {
|
||||
onSettings = { isSettingsVisible = true },
|
||||
onExit = { exitApplication() },
|
||||
)
|
||||
logger.info("AnyTask started. Press ${HotkeyManager.DESCRIPTION} to open the task window.")
|
||||
}
|
||||
|
||||
DisposableEffect(Unit) {
|
||||
|
||||
@@ -15,6 +15,9 @@ import java.util.logging.Logger
|
||||
*/
|
||||
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 var listener: NativeKeyListener? = null
|
||||
|
||||
|
||||