forked from Shinonome/dots-hyprland
session: remove unnecessary focus
This commit is contained in:
@@ -118,7 +118,6 @@ Scope {
|
|||||||
}
|
}
|
||||||
SessionActionButton {
|
SessionActionButton {
|
||||||
id: sessionSleep
|
id: sessionSleep
|
||||||
focus: sessionRoot.visible
|
|
||||||
buttonIcon: "dark_mode"
|
buttonIcon: "dark_mode"
|
||||||
buttonText: qsTr("Sleep")
|
buttonText: qsTr("Sleep")
|
||||||
onClicked: { sleep.running = true; sessionRoot.visible = false }
|
onClicked: { sleep.running = true; sessionRoot.visible = false }
|
||||||
@@ -129,7 +128,6 @@ Scope {
|
|||||||
}
|
}
|
||||||
SessionActionButton {
|
SessionActionButton {
|
||||||
id: sessionLogout
|
id: sessionLogout
|
||||||
focus: sessionRoot.visible
|
|
||||||
buttonIcon: "logout"
|
buttonIcon: "logout"
|
||||||
buttonText: qsTr("Logout")
|
buttonText: qsTr("Logout")
|
||||||
onClicked: { logout.running = true; sessionRoot.visible = false }
|
onClicked: { logout.running = true; sessionRoot.visible = false }
|
||||||
@@ -140,7 +138,6 @@ Scope {
|
|||||||
}
|
}
|
||||||
SessionActionButton {
|
SessionActionButton {
|
||||||
id: sessionTaskManager
|
id: sessionTaskManager
|
||||||
focus: sessionRoot.visible
|
|
||||||
buttonIcon: "browse_activity"
|
buttonIcon: "browse_activity"
|
||||||
buttonText: qsTr("Task Manager")
|
buttonText: qsTr("Task Manager")
|
||||||
onClicked: { taskManager.running = true; sessionRoot.visible = false }
|
onClicked: { taskManager.running = true; sessionRoot.visible = false }
|
||||||
@@ -154,7 +151,6 @@ Scope {
|
|||||||
spacing: 15
|
spacing: 15
|
||||||
SessionActionButton {
|
SessionActionButton {
|
||||||
id: sessionHibernate
|
id: sessionHibernate
|
||||||
focus: sessionRoot.visible
|
|
||||||
buttonIcon: "downloading"
|
buttonIcon: "downloading"
|
||||||
buttonText: qsTr("Hibernate")
|
buttonText: qsTr("Hibernate")
|
||||||
onClicked: { hibernate.running = true; sessionRoot.visible = false }
|
onClicked: { hibernate.running = true; sessionRoot.visible = false }
|
||||||
@@ -164,7 +160,6 @@ Scope {
|
|||||||
}
|
}
|
||||||
SessionActionButton {
|
SessionActionButton {
|
||||||
id: sessionShutdown
|
id: sessionShutdown
|
||||||
focus: sessionRoot.visible
|
|
||||||
buttonIcon: "power_settings_new"
|
buttonIcon: "power_settings_new"
|
||||||
buttonText: qsTr("Shutdown")
|
buttonText: qsTr("Shutdown")
|
||||||
onClicked: { shutdown.running = true; sessionRoot.visible = false }
|
onClicked: { shutdown.running = true; sessionRoot.visible = false }
|
||||||
@@ -175,7 +170,6 @@ Scope {
|
|||||||
}
|
}
|
||||||
SessionActionButton {
|
SessionActionButton {
|
||||||
id: sessionReboot
|
id: sessionReboot
|
||||||
focus: sessionRoot.visible
|
|
||||||
buttonIcon: "restart_alt"
|
buttonIcon: "restart_alt"
|
||||||
buttonText: qsTr("Reboot")
|
buttonText: qsTr("Reboot")
|
||||||
onClicked: { reboot.running = true; sessionRoot.visible = false }
|
onClicked: { reboot.running = true; sessionRoot.visible = false }
|
||||||
@@ -186,7 +180,6 @@ Scope {
|
|||||||
}
|
}
|
||||||
SessionActionButton {
|
SessionActionButton {
|
||||||
id: sessionFirmwareReboot
|
id: sessionFirmwareReboot
|
||||||
focus: sessionRoot.visible
|
|
||||||
buttonIcon: "settings_applications"
|
buttonIcon: "settings_applications"
|
||||||
buttonText: qsTr("Reboot to firmware settings")
|
buttonText: qsTr("Reboot to firmware settings")
|
||||||
onClicked: { firmwareReboot.running = true; sessionRoot.visible = false }
|
onClicked: { firmwareReboot.running = true; sessionRoot.visible = false }
|
||||||
|
|||||||
Reference in New Issue
Block a user