mirror of
https://github.com/morgan9e/warehouse
synced 2026-04-14 00:04:08 +09:00
Find remote installation type in a better way
Make it so that the options in the remote Options column are looped through to find user or system, instead of always assuming is the first option
This commit is contained in:
@@ -85,9 +85,17 @@ class myUtils:
|
|||||||
data.append(row)
|
data.append(row)
|
||||||
try:
|
try:
|
||||||
for i in range(len(data)):
|
for i in range(len(data)):
|
||||||
data[i][7] = data[i][7].split(",")[0]
|
data[i][7] = data[i][7].split(",")
|
||||||
|
for j in range(len(data[i])):
|
||||||
|
if data[i][7][j] == "user":
|
||||||
|
data[i][7] = "user"
|
||||||
|
break
|
||||||
|
|
||||||
|
if data[i][7][j] == "system":
|
||||||
|
data[i][7] = "system"
|
||||||
|
break
|
||||||
except:
|
except:
|
||||||
pass
|
print("error getting remote installation types")
|
||||||
return data
|
return data
|
||||||
|
|
||||||
def getHostFlatpaks(self):
|
def getHostFlatpaks(self):
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ template WarehouseWindow : Adw.ApplicationWindow {
|
|||||||
Adw.StatusPage no_flatpaks {
|
Adw.StatusPage no_flatpaks {
|
||||||
icon-name: "error-symbolic";
|
icon-name: "error-symbolic";
|
||||||
title: _("No Flatpaks Found");
|
title: _("No Flatpaks Found");
|
||||||
description: _("Warehouse cannot see the list of installed Flatpaks or the system has no Flatpaks installed.");
|
description: _("There are either no Flatpaks that match the current filter, Warehouse cannot see the list of installed Flatpaks, or the system has no Flatpaks installed.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user