1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-08-02 03:28:28 -04:00

greeter: more repairs for standalone package, scrap LegacyNetworkService

This commit is contained in:
bbedward
2026-07-19 17:04:57 -04:00
parent fb65a23fac
commit dc4916b9e0
8 changed files with 75 additions and 672 deletions
@@ -382,7 +382,8 @@ Rectangle {
"id": "greeter",
"text": I18n.tr("Greeter"),
"icon": "login",
"tabIndex": 31
"tabIndex": 31,
"greeterOnly": true
},
{
"id": "power_sleep",
@@ -411,7 +412,7 @@ Rectangle {
]
function isItemVisible(item) {
if (item.dmsOnly && NetworkService.usingLegacy)
if (item.dmsOnly && !NetworkService.networkAvailable)
return false;
if (item.cupsOnly && !CupsService.cupsAvailable)
return false;
@@ -431,6 +432,8 @@ Rectangle {
return false;
if (item.updaterOnly && !SystemUpdateService.sysupdateAvailable)
return false;
if (item.greeterOnly && !GreeterService.available)
return false;
if (item.autostartOnly && !DesktopService.autostartAvailable)
return false;
return true;
@@ -637,6 +640,7 @@ Rectangle {
Component.onCompleted: {
root._expandedIds = SessionData.settingsSidebarExpandedIds;
root._collapsedIds = SessionData.settingsSidebarCollapsedIds;
GreeterService.refresh();
}
StyledTextMetrics {