removes direct extern access, receives signal properly now, removed declaration unused method
Lint & Format (JS/TS) / lint-format (pull_request) Successful in 14s
Python / lint-format (pull_request) Successful in 21s
Python / test (pull_request) Successful in 44s
Lint & Format (Rust) / lint-format (pull_request) Successful in 1m6s

This commit is contained in:
2026-06-03 16:27:31 +02:00
parent 0584cd618e
commit 2920c57163
5 changed files with 13 additions and 4 deletions
-2
View File
@@ -26,8 +26,6 @@ add_compile_options(
if("plugin" IN_LIST ENABLE_MODULES)
add_subdirectory(Plugins)
add_custom_target(fix-cc
COMMAND sed -i "s/-mno-direct-extern-access/-fno-direct-access-external-data/g" "${CMAKE_BINARY_DIR}/compile_commands.json")
endif()
if("shell" IN_LIST ENABLE_MODULES)
-1
View File
@@ -1,5 +1,4 @@
import Quickshell
import ZShell
import QtQuick
Scope {
+8
View File
@@ -9,6 +9,7 @@ import qs.Components
Scope {
id: root
required property var lid
property alias lock: lock
property int seenOnce: 0
@@ -21,6 +22,13 @@ Scope {
onRequestLock: lock.locked = true
onUnlock: lock.locked = false
Connections {
target: root.lid
function onRequestLock(): void {
lock.locked = true
}
}
LockSurface {
id: lockSurface
-1
View File
@@ -32,7 +32,6 @@ class LidWatcher : public QObject {
LidState m_state = Opened;
void extracted();
void onPropertiesChanged(const QString& interface,
const QVariantMap& changed,
const QStringList& invalidated);
+5
View File
@@ -35,6 +35,8 @@ ShellRoot {
Lock {
id: lock
lid: lid
}
Shortcuts {
@@ -48,7 +50,10 @@ ShellRoot {
}
LazyLoader {
id: lid
activeAsync: Config.lock.lidWatch && Battery.isLaptop
component: LidService {
onRequestLock: lock.lock.requestLock()
}