diff --git a/com.github.Melawy.ArchUpdate/contents/config/main.xml b/com.github.Melawy.ArchUpdate/contents/config/main.xml
index 4b0c15d..6535a2a 100644
--- a/com.github.Melawy.ArchUpdate/contents/config/main.xml
+++ b/com.github.Melawy.ArchUpdate/contents/config/main.xml
@@ -8,6 +8,9 @@
Arch Updater
+
+ true
+
true
diff --git a/com.github.Melawy.ArchUpdate/contents/locale/ru_RU/LC_MESSAGES/plasma_applet_com.github.Melawy.ArchUpdate.mo b/com.github.Melawy.ArchUpdate/contents/locale/ru_RU/LC_MESSAGES/plasma_applet_com.github.Melawy.ArchUpdate.mo
index 78b72d0..e66bb5c 100644
Binary files a/com.github.Melawy.ArchUpdate/contents/locale/ru_RU/LC_MESSAGES/plasma_applet_com.github.Melawy.ArchUpdate.mo and b/com.github.Melawy.ArchUpdate/contents/locale/ru_RU/LC_MESSAGES/plasma_applet_com.github.Melawy.ArchUpdate.mo differ
diff --git a/com.github.Melawy.ArchUpdate/contents/service/Updater.qml b/com.github.Melawy.ArchUpdate/contents/service/Updater.qml
index b1aa3d4..6c4ed93 100644
--- a/com.github.Melawy.ArchUpdate/contents/service/Updater.qml
+++ b/com.github.Melawy.ArchUpdate/contents/service/Updater.qml
@@ -35,7 +35,7 @@ Item {
Timer {
id: startUpTimer
interval: 10000
- running: true
+ running: Plasmoid.configuration.checkOnStart
repeat: false
triggeredOnStart: false
onTriggered: checkUpdates()
diff --git a/com.github.Melawy.ArchUpdate/contents/ui/config/configGeneral.qml b/com.github.Melawy.ArchUpdate/contents/ui/config/configGeneral.qml
index eb67203..3d0cd26 100644
--- a/com.github.Melawy.ArchUpdate/contents/ui/config/configGeneral.qml
+++ b/com.github.Melawy.ArchUpdate/contents/ui/config/configGeneral.qml
@@ -11,6 +11,7 @@ ColumnLayout {
property alias cfg_commandForCheckingUpdates: commandForCheckingUpdates.text
property alias cfg_commandForUpgrade: commandForUpgrade.text
property alias cfg_showNotification: showNotification.checked
+ property alias cfg_checkOnStart: checkOnStart.checked
RowLayout {
Layout.fillWidth: true
@@ -27,6 +28,19 @@ ColumnLayout {
}
}
+ RowLayout {
+ Layout.fillWidth: true
+
+ Label {
+ text: i18nc("@title:label", "Checking:")
+ }
+
+ CheckBox {
+ id: checkOnStart
+ text: i18nc("@option:check", "Check on start")
+ }
+ }
+
RowLayout {
Layout.fillWidth: true
diff --git a/com.github.Melawy.ArchUpdate/contents/ui/main.qml b/com.github.Melawy.ArchUpdate/contents/ui/main.qml
index 09b7612..ddb3beb 100644
--- a/com.github.Melawy.ArchUpdate/contents/ui/main.qml
+++ b/com.github.Melawy.ArchUpdate/contents/ui/main.qml
@@ -28,6 +28,7 @@ Item {
property bool badgeVisible: false
property bool showNotification: Plasmoid.configuration.showNotification
+ property bool checkOnStart: Plasmoid.configuration.checkOnStart
property string notifyText: ""
property string errorText: ""
diff --git a/com.github.Melawy.ArchUpdate/translate/ReadMe.md b/com.github.Melawy.ArchUpdate/translate/ReadMe.md
index 5022703..1634996 100644
--- a/com.github.Melawy.ArchUpdate/translate/ReadMe.md
+++ b/com.github.Melawy.ArchUpdate/translate/ReadMe.md
@@ -27,5 +27,5 @@ Or if you know how to make a pull request
## Status
| Locale | Lines | % Done|
|----------|---------|-------|
-| Template | 16 | |
-| ru_RU | 14/16 | 87% |
+| Template | 18 | |
+| ru_RU | 17/18 | 94% |
diff --git a/com.github.Melawy.ArchUpdate/translate/ru_RU.po b/com.github.Melawy.ArchUpdate/translate/ru_RU.po
index 8788590..8005dbe 100644
--- a/com.github.Melawy.ArchUpdate/translate/ru_RU.po
+++ b/com.github.Melawy.ArchUpdate/translate/ru_RU.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: ArchUpdate\n"
"Report-Msgid-Bugs-To: https://github.com/Valeria-Fadeeva\n"
-"POT-Creation-Date: 2024-01-03 20:40+0500\n"
+"POT-Creation-Date: 2024-01-14 02:31+0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME \n"
"Language-Team: LANGUAGE \n"
@@ -31,6 +31,16 @@ msgctxt "@title:label"
msgid "Update interval (minutes):"
msgstr "Интервал проверки (минуты)"
+#: ../contents/ui/config/configGeneral.qml
+msgctxt "@title:label"
+msgid "Checking:"
+msgstr "Проверка"
+
+#: ../contents/ui/config/configGeneral.qml
+msgctxt "@option:check"
+msgid "Check on start"
+msgstr "Проверять при запуске"
+
#: ../contents/ui/config/configGeneral.qml
msgctxt "@title:label"
msgid "Notifications:"
@@ -48,7 +58,7 @@ msgstr "Команда для проверки обновлений"
#: ../contents/ui/config/configGeneral.qml
msgid "Write command for cheching updates"
-msgstr ""
+msgstr "Напишите команду для проверки обновлений"
#: ../contents/ui/config/configGeneral.qml
msgctxt "@title:label"
@@ -57,7 +67,7 @@ msgstr "Команда для обновления"
#: ../contents/ui/config/configGeneral.qml
msgid "Write command for upgrade"
-msgstr "Напишите команду для проверки обновлений"
+msgstr "Напишите команду для установки обновлений"
#: ../contents/ui/Full.qml
msgid "Check updates"
diff --git a/com.github.Melawy.ArchUpdate/translate/template.pot b/com.github.Melawy.ArchUpdate/translate/template.pot
index 0fc6806..8a1d294 100644
--- a/com.github.Melawy.ArchUpdate/translate/template.pot
+++ b/com.github.Melawy.ArchUpdate/translate/template.pot
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: ArchUpdate\n"
"Report-Msgid-Bugs-To: https://github.com/Valeria-Fadeeva\n"
-"POT-Creation-Date: 2024-01-03 20:40+0500\n"
+"POT-Creation-Date: 2024-01-14 02:31+0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME \n"
"Language-Team: LANGUAGE \n"
@@ -31,6 +31,16 @@ msgctxt "@title:label"
msgid "Update interval (minutes):"
msgstr ""
+#: ../contents/ui/config/configGeneral.qml
+msgctxt "@title:label"
+msgid "Checking:"
+msgstr ""
+
+#: ../contents/ui/config/configGeneral.qml
+msgctxt "@option:check"
+msgid "Check on start"
+msgstr ""
+
#: ../contents/ui/config/configGeneral.qml
msgctxt "@title:label"
msgid "Notifications:"
diff --git a/install.sh b/install.sh
index b64e720..2d6bb86 100755
--- a/install.sh
+++ b/install.sh
@@ -21,3 +21,5 @@ THEME_NAME="com.github.Melawy.ArchUpdate"
rm -rf $THEME_PATH/$THEME_NAME
cp -vrf --remove-destination --no-dereference --preserve=links "$PWD/$THEME_NAME" "$THEME_PATH/"
+
+echo "Ready"