diff --git a/qml/pages/MainView.qml b/qml/pages/MainView.qml index a81ecd3..9bac121 100644 --- a/qml/pages/MainView.qml +++ b/qml/pages/MainView.qml @@ -41,6 +41,7 @@ Page { // This holds the time of the last update of the page as Unix Timestamp (in Milliseconds) property double lastUpdated: 0 property double seconds_global: 0 + property string searchTerm: "" // Reload the List of OTPs from storage function refreshOTPList() { @@ -79,11 +80,17 @@ Page { lastUpdated = curDate.getTime(); } - // Reload OTP List on Return to the Page (to e.g. accomodate changed scd ettings) + // Reload OTP List on Return to the Page (to e.g. accomodate changed settings) onStatusChanged: { - if (status === PageStatus.Activating) { - refreshOTPList(); + if (status === PageStatus.Activating) { + refreshOTPList(); + + if (searchTerm != "") { + for (var i = 0; i < appWin.listModel.count; i++) { + appWin.listModel.get(i).itemVisible = appWin.listModel.get(i).title.toString().toLowerCase().indexOf(searchTerm.toLowerCase()) > -1 + } } + } } Timer { @@ -170,6 +177,7 @@ Page { inputMethodHints: Qt.ImhNoPredictiveText // Qt.ImhPreferUppercase | Qt.ImhNoAutoUppercase placeholderText: qsTr("Search") onTextChanged: { + searchTerm = searchField.text for (var i = 0; i < appWin.listModel.count; i++) { appWin.listModel.get(i).itemVisible = appWin.listModel.get(i).title.toString().toLowerCase().indexOf(searchField.text.toLowerCase()) > -1 } diff --git a/rpm/harbour-sailotp.changes b/rpm/harbour-sailotp.changes index 19e142a..eb1cd85 100644 --- a/rpm/harbour-sailotp.changes +++ b/rpm/harbour-sailotp.changes @@ -1,3 +1,6 @@ +* Mon Jan 18 2021 Stefan Brand 1.9.2-1 +- Fix a Small Bug in Search (conbtributed by Jyri-Petteri Paloposki) + * Mon Jan 11 2021 Stefan Brand 1.9.1-1 - Fix About Page (contributed in parts by Jyri-Petteri Paloposki) - Update Swedish Translation (contributed by Åke Engelbrektson) diff --git a/rpm/harbour-sailotp.yaml b/rpm/harbour-sailotp.yaml index a786b0e..5feb96e 100644 --- a/rpm/harbour-sailotp.yaml +++ b/rpm/harbour-sailotp.yaml @@ -1,6 +1,6 @@ Name: harbour-sailotp Summary: SailOTP -Version: 1.9.1 +Version: 1.9.2 Release: 1 Group: Security URL: https://github.com/seiichiro0185/sailotp/ diff --git a/translations/harbour-sailotp-de.ts b/translations/harbour-sailotp-de.ts index 83721ef..3224a8d 100644 --- a/translations/harbour-sailotp-de.ts +++ b/translations/harbour-sailotp-de.ts @@ -277,84 +277,84 @@ MainView - + About Über - + Settings Einstellungen - + Export / Import Export / Import - + Add Token Token hinzufügen - + Nothing here Hier ist nichts - + Pull down to add a OTP Nach unten ziehen zum Hinzufügen - + Search Suchen - + Deleting Lösche - - + + Token for Token für - - + + copied to clipboard in die Zwischenablage kopiert - + Copy to Clipboard In die Zwischenablage - + Show Token as QR-Code Als QR-Code Zeigen - + Move up Nach oben - + Move down Nach unten - + Edit Bearbeiten - + Delete Löschen diff --git a/translations/harbour-sailotp-es.ts b/translations/harbour-sailotp-es.ts index 7b5533c..ddebb7d 100644 --- a/translations/harbour-sailotp-es.ts +++ b/translations/harbour-sailotp-es.ts @@ -277,84 +277,84 @@ MainView - + About Acerca de - + Settings Configuración - + Export / Import Exportar/Importar - + Add Token Añadir Token - + Nothing here Nada aquí - + Pull down to add a OTP Tire hacia abajo para añadir tokens OTP - + Search - + Deleting Borrando - - + + Token for Token para - - + + copied to clipboard copiado al portapapeles - + Copy to Clipboard Copiar al portapapeles - + Show Token as QR-Code Mostrar código QR - + Move up Ascender - + Move down Descender - + Edit Editar - + Delete Borrar diff --git a/translations/harbour-sailotp-fi.ts b/translations/harbour-sailotp-fi.ts index 9fc4f59..2af3bd8 100644 --- a/translations/harbour-sailotp-fi.ts +++ b/translations/harbour-sailotp-fi.ts @@ -277,84 +277,84 @@ MainView - + About Tietoja - + Settings Asetukset - + Export / Import Vie / Tuo - + Add Token Lisää tunnus - + Nothing here Tyhjää täynnä - + Pull down to add a OTP Vedä alaspäin lisätäksesi kertasalasanatunnuksen - + Search Etsi - + Deleting Poistetaan - - + + Token for Kertasalasana palveluun - - + + copied to clipboard on kopioitu leikepöydälle - + Copy to Clipboard Kopioi leikepöydälle - + Show Token as QR-Code Näytä kertasalasana QR-koodina - + Move up Siirrä ylöspäin - + Move down Siirrä alaspäin - + Edit Muokkaa - + Delete Poista diff --git a/translations/harbour-sailotp-fr.ts b/translations/harbour-sailotp-fr.ts index 54c6b6f..50cbe62 100644 --- a/translations/harbour-sailotp-fr.ts +++ b/translations/harbour-sailotp-fr.ts @@ -278,84 +278,84 @@ MainView - + About À propos - + Settings Paramètres - + Export / Import Exporter / Importer - + Add Token Ajouter un OTP - + Nothing here Aucun mot de passe - + Pull down to add a OTP Glissez vers le bas pour ajouter un OTP - + Search - + Deleting Suppression - - + + Token for OTP pour - - + + copied to clipboard copié dans le presse-papier - + Copy to Clipboard Copier dans le presse-papier - + Show Token as QR-Code Afficher le code QR - + Move up Déplacer vers le haut - + Move down Déplacer vers le bas - + Edit Modifier - + Delete Supprimer diff --git a/translations/harbour-sailotp-it.ts b/translations/harbour-sailotp-it.ts index 3a95f51..a8cc26e 100644 --- a/translations/harbour-sailotp-it.ts +++ b/translations/harbour-sailotp-it.ts @@ -277,84 +277,84 @@ MainView - + About Informazioni - + Settings Imopstazioni - + Export / Import Esporta / Importa - + Add Token Aggiungi Token - + Nothing here Qua non c&apos;è nulla - + Pull down to add a OTP Trascina giù per aggiungere una OTP - + Search - + Deleting Cancellazione - - + + Token for Token per - - + + copied to clipboard copiato negli appunti - + Copy to Clipboard Copia negli appunti - + Show Token as QR-Code Mostra Codice QR - + Move up >Sposta su - + Move down Sposta giù - + Edit Modifica - + Delete Cancella diff --git a/translations/harbour-sailotp-nl.ts b/translations/harbour-sailotp-nl.ts index c9114d3..ebc2955 100644 --- a/translations/harbour-sailotp-nl.ts +++ b/translations/harbour-sailotp-nl.ts @@ -277,84 +277,84 @@ MainView - + About Over - + Settings Instellingen - + Export / Import Exporteer / Importeer - + Add Token Voeg token toe - + Nothing here Niets weer te geven - + Pull down to add a OTP Veeg naar beneden om een OTP toe te voegen - + Search - + Deleting Wissen - - + + Token for Token voor - - + + copied to clipboard gekopieerd naar het klembord - + Copy to Clipboard Kopieer naar klembord - + Show Token as QR-Code Geeft token als QR-code weer - + Move up Verplaats naar boven - + Move down Verplaats naar beneden - + Edit Wijzig - + Delete Verwijder diff --git a/translations/harbour-sailotp-pt_BR.ts b/translations/harbour-sailotp-pt_BR.ts index f4095ff..5843f3d 100644 --- a/translations/harbour-sailotp-pt_BR.ts +++ b/translations/harbour-sailotp-pt_BR.ts @@ -277,84 +277,84 @@ MainView - + About Sobre - + Settings Configurações - + Export / Import Exportar e importar - + Add Token Adicionar Token - + Nothing here Nada aqui - + Pull down to add a OTP Puxe para baixo para adicionar um OTP - + Search - + Deleting Apagando - - + + Token for Token para - - + + copied to clipboard copiado para a área de transferência - + Copy to Clipboard Copiar para área de transferência - + Show Token as QR-Code Mostrar código QR - + Move up Mover para cima - + Move down Mover para baixo - + Edit Editar - + Delete Apagar diff --git a/translations/harbour-sailotp-ru.ts b/translations/harbour-sailotp-ru.ts index 8eea636..57e5591 100644 --- a/translations/harbour-sailotp-ru.ts +++ b/translations/harbour-sailotp-ru.ts @@ -278,84 +278,84 @@ MainView - + About О приложении - + Settings настройки - + Export / Import Экспорт / импорт - + Add Token Добавить токен - + Nothing here Ничего нету - + Pull down to add a OTP Потяните вниз чтобы добавить OTP - + Search - + Deleting Удаление - - + + Token for Токен для - - + + copied to clipboard скопирован в буфер обмена - + Copy to Clipboard Скопировать в буфер обмена - + Show Token as QR-Code Показать QR-код - + Move up Передвинуть вниз - + Move down Передвинуть вверх - + Edit Редактировать - + Delete Удалить diff --git a/translations/harbour-sailotp-sv.ts b/translations/harbour-sailotp-sv.ts index 44a8d52..a373d6c 100644 --- a/translations/harbour-sailotp-sv.ts +++ b/translations/harbour-sailotp-sv.ts @@ -277,84 +277,84 @@ MainView - + About Om - + Settings Inställningar - + Export / Import Export / Import - + Add Token Lägg till Token - + Nothing here Inget här - + Pull down to add a OTP Dra neråt för att lägga till en OTP - + Search Sök - + Deleting Tar bort - - + + Token for Token för - - + + copied to clipboard kopierad till urklipp - + Copy to Clipboard Kopiera till Urklipp - + Show Token as QR-Code Visa token som QR-kod - + Move up Flytta upp - + Move down Flytta ner - + Edit Redigera - + Delete Ta bort diff --git a/translations/harbour-sailotp-zh_CN.ts b/translations/harbour-sailotp-zh_CN.ts index f3d29ce..b9c57c0 100644 --- a/translations/harbour-sailotp-zh_CN.ts +++ b/translations/harbour-sailotp-zh_CN.ts @@ -277,84 +277,84 @@ MainView - + About 关于 - + Settings 设置 - + Export / Import 导出/导入 - + Add Token 添加令牌 - + Nothing here 无内容 - + Pull down to add a OTP 下拉添加一个OTP - + Search - + Deleting 删除中 - - + + Token for 令牌 - - + + copied to clipboard 已复制到剪切板 - + Copy to Clipboard 复制到剪贴板 - + Show Token as QR-Code 显示二维码 - + Move up 向上 - + Move down 向下 - + Edit 编辑 - + Delete 删除 diff --git a/translations/harbour-sailotp.ts b/translations/harbour-sailotp.ts index 7af6cf8..0b89d9d 100644 --- a/translations/harbour-sailotp.ts +++ b/translations/harbour-sailotp.ts @@ -277,84 +277,84 @@ MainView - + About - + Settings - + Export / Import - + Add Token - + Nothing here - + Pull down to add a OTP - + Search - + Deleting - - + + Token for - - + + copied to clipboard - + Copy to Clipboard - + Show Token as QR-Code - + Move up - + Move down - + Edit - + Delete