Commit 112e365d authored by Roman Alifanov's avatar Roman Alifanov

added filter: changed

parent bf943160
msgid ""
msgstr ""
"Project-Id-Version: ru.eepm.PlayGUI\n"
"POT-Creation-Date: 2024-10-03 01:52+0300\n"
"PO-Revision-Date: 2024-10-03 01:52+0300\n"
"POT-Creation-Date: 2024-10-07 19:12+0300\n"
"PO-Revision-Date: 2024-10-07 19:17+0300\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: ru\n"
......@@ -28,19 +28,19 @@ msgctxt "shortcut window"
msgid "Quit"
msgstr "Выйти"
#: window.py:160
#: window.py:167
msgid "Remove and install applications"
msgstr "Удалить и установить программы"
#: window.py:163
#: window.py:168
msgid "Install applications"
msgstr "Установить программы"
#: window.py:166
#: window.py:169
msgid "Remove applications"
msgstr "Удалить программы"
#: window.py:169 window.ui:99
#: window.py:170 window.ui:100
msgid "Update applications"
msgstr "Обновить программы"
......@@ -60,7 +60,11 @@ msgstr "Установленные"
msgid "Uninstalled"
msgstr "Неустановленные"
#: window.ui:121
#: window.ui:51
msgid "Changed"
msgstr "Изменённые"
#: window.ui:122
msgid "_About Eepm-play-gui"
msgstr "О программе"
......
......@@ -78,7 +78,8 @@
(1,15,"GtkWidget",1,1,None,None,None,None,None,None),
(1,15,"GtkWidget",2,2,None,1,None,None,None,None),
(1,22,"GtkWidget",1,1,None,None,None,None,None,None),
(1,22,"GtkWidget",2,2,None,1,None,None,None,None)
(1,22,"GtkWidget",2,2,None,1,None,None,None,None),
(1,10,"GtkStringList",2,5,"Changed",1,None,1,None,None)
</object_data>
<object_data_arg>
(1,7,"GtkWidget",2,2,"name","linked"),
......
......@@ -201,11 +201,14 @@ class EepmPlayGuiWindow(Adw.ApplicationWindow):
# Проверка по фильтру: установлено/не установлено в системе
app_name = row.get_title() if row.get_title() else ''
is_installed = app_name in self.installed_apps
is_changed = row.is_changed()
if filter_option == 1: # Installed
return matches_search and is_installed
elif filter_option == 2: # Uninstalled
return matches_search and not is_installed
elif filter_option == 3: # Changed
return matches_search and is_changed
else:
return matches_search # All
......
......@@ -48,6 +48,7 @@
<item translatable="yes">All</item>
<item translatable="yes">Installed</item>
<item translatable="yes">Uninstalled</item>
<item translatable="yes">Changed</item>
</items>
</object>
</property>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment