fix presets

pull/179/head
ZetGo | Aleksej K. 2025-09-16 21:50:34 +03:00
parent 733708e2ca
commit 81bf69f34b
1 changed files with 4 additions and 4 deletions

View File

@ -157,8 +157,8 @@ class Presets(loader.Module):
index = 0 index = 0
for link in mod_row: for link in mod_row:
text = ( text = (
f"{("" if link not in to_install else "")}" f"{('' if link not in to_install else '')}"
f"{link.rsplit("/", maxsplit=1)[1].split(".")[0]}" f"{link.rsplit('/', maxsplit=1)[1].split('.')[0]}"
) )
row.append( row.append(
{ {
@ -207,9 +207,9 @@ class Presets(loader.Module):
else "▫️" else "▫️"
), ),
( (
f"<s>{link.rsplit("/", maxsplit=1)[1].split(".")[0]}</s>" f"<s>{link.rsplit('/', maxsplit=1)[1].split('.')[0]}</s>"
if link not in to_install if link not in to_install
else link.rsplit("/", maxsplit=1)[1].split(".")[0]), else link.rsplit('/', maxsplit=1)[1].split('.')[0]),
), ),
int(self._is_installed(link)), int(self._is_installed(link)),
) )