Hello community,

here is the log from the commit of package yishu for openSUSE:Factory checked 
in at 2020-05-26 17:21:36
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yishu (Old)
 and      /work/SRC/openSUSE:Factory/.yishu.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "yishu"

Tue May 26 17:21:36 2020 rev:9 rq:808555 version:1.2.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/yishu/yishu.changes      2020-02-03 
11:15:05.365898643 +0100
+++ /work/SRC/openSUSE:Factory/.yishu.new.2738/yishu.changes    2020-05-26 
17:21:51.748302715 +0200
@@ -1,0 +2,16 @@
+Sun May 17 12:32:23 UTC 2020 - Alexei Podvalsky <[email protected]>
+
+- Update to 1.2.3:
+  * Remove unused variables
+  * Avoid setting file path to home on every start
+  * Merge pull request #54 from onderbakirtas/master
+  * Merge pull request #1 from
+    onderbakirtas/onderbakirtas-patch-tr
+  * Upgraded tr.po
+  * Merge pull request #53 from safak45x/patch-1
+  * Update tr.po
+  * Merge pull request #52 from oskarkunik/master
+  * 1.2.2
+  * - some stuff
+
+-------------------------------------------------------------------

Old:
----
  yishu-1.2.1.tar.gz

New:
----
  yishu-1.2.3.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ yishu.spec ++++++
--- /var/tmp/diff_new_pack.vWDkir/_old  2020-05-26 17:21:52.376304065 +0200
+++ /var/tmp/diff_new_pack.vWDkir/_new  2020-05-26 17:21:52.380304074 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           yishu
-Version:        1.2.1
+Version:        1.2.3
 Release:        0
 Summary:        A bespoke and simple Todo.txt client
 License:        GPL-3.0-or-later

++++++ yishu-1.2.1.tar.gz -> yishu-1.2.3.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yishu-1.2.1/.travis.yml new/yishu-1.2.3/.travis.yml
--- old/yishu-1.2.1/.travis.yml 2020-01-17 21:58:10.000000000 +0100
+++ new/yishu-1.2.3/.travis.yml 2020-05-03 18:02:06.000000000 +0200
@@ -3,7 +3,7 @@
 language: node_js
 
 node_js:
-  - 10/*
+  - 10.17.0
 
 sudo: required
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yishu-1.2.1/data/com.github.lainsce.yishu.appdata.xml.in 
new/yishu-1.2.3/data/com.github.lainsce.yishu.appdata.xml.in
--- old/yishu-1.2.1/data/com.github.lainsce.yishu.appdata.xml.in        
2020-01-17 21:58:10.000000000 +0100
+++ new/yishu-1.2.3/data/com.github.lainsce.yishu.appdata.xml.in        
2020-05-03 18:02:06.000000000 +0200
@@ -10,6 +10,7 @@
         <ul>
             <li>Quit anytime with the shortcut Ctrl + Q</li>
             <li>Easily shareable with other Todo.txt clients on other 
platforms</li>
+            <li>Searches can be saved, one at a time. No need for more.</li>
         </ul>
     </description>
     <provides>
@@ -53,7 +54,25 @@
         </screenshot>
     </screenshots>
     <releases>
-        <release version="1.1.3" date="2020-01-24">
+        <release version="1.2.3" date="2020-05-08">
+            <description>
+                <p>Release: Location Known</p>
+                <ul>
+                    <li>Fixed: Default or Custom location being reset (Darshak 
Parikh - @dar5hak)</li>
+                    <li>Added: Turkish and Polish translations</li>
+                </ul>
+            </description>
+        </release>
+        <release version="1.2.2" date="2020-01-31">
+            <description>
+                <p>Release: Save Those Tasks Well</p>
+                <ul>
+                    <li>Added: Preferences to save search</li>
+                    <li>Small backend fixes</li>
+                </ul>
+            </description>
+        </release>
+        <release version="1.2.1" date="2020-01-24">
             <description>
                 <p>Release: Wow Factor</p>
                 <ul>
@@ -62,7 +81,7 @@
                 </ul>
             </description>
         </release>
-        <release version="1.1.2" date="2019-07-30">
+        <release version="1.2.0" date="2019-07-30">
             <description>
                 <p>Release: Redesign and Fixes</p>
                 <ul>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/yishu-1.2.1/data/com.github.lainsce.yishu.gschema.xml 
new/yishu-1.2.3/data/com.github.lainsce.yishu.gschema.xml
--- old/yishu-1.2.1/data/com.github.lainsce.yishu.gschema.xml   2020-01-17 
21:58:10.000000000 +0100
+++ new/yishu-1.2.3/data/com.github.lainsce.yishu.gschema.xml   2020-05-03 
18:02:06.000000000 +0200
@@ -10,11 +10,21 @@
                        <summary>Enable custom files</summary>
                        <description>Whether to enable custom file 
places</description>
                </key>
+               <key type="b" name="save-search">
+                       <default>false</default>
+                       <summary>Save searches</summary>
+                       <description>Whether to enable save searches for 
re-use</description>
+               </key>
                <key type="s" name="todo-txt-file-path">
                        <default>""</default>
                        <summary>todotxt file path</summary>
                        <description>Path to the todotxt file to 
use</description>
                </key>
+               <key type="s" name="saved-search-string">
+                       <default>""</default>
+                       <summary>Saved search string</summary>
+                       <description>Search to re-use</description>
+               </key>
                <key type="i" name="saved-state-width">
                        <default>600</default>
                        <summary>Saved state width</summary>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yishu-1.2.1/meson.build new/yishu-1.2.3/meson.build
--- old/yishu-1.2.1/meson.build 2020-01-17 21:58:10.000000000 +0100
+++ new/yishu-1.2.3/meson.build 2020-05-03 18:02:06.000000000 +0200
@@ -1,6 +1,6 @@
 # Name our project
 project('com.github.lainsce.yishu', ['vala', 'c'],
-    version: '1.1.3'
+    version: '1.2.3'
 )
 
 # Import main lib files
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yishu-1.2.1/po/pl.po new/yishu-1.2.3/po/pl.po
--- old/yishu-1.2.1/po/pl.po    2020-01-17 21:58:10.000000000 +0100
+++ new/yishu-1.2.3/po/pl.po    2020-05-03 18:02:06.000000000 +0200
@@ -8,8 +8,8 @@
 "Project-Id-Version: com.github.lainsce.yishu\n"
 "Report-Msgid-Bugs-To: \n"
 "POT-Creation-Date: 2019-03-30 17:17+0100\n"
-"PO-Revision-Date: 2019-03-30 16:53+0100\n"
-"Last-Translator: Automatically generated\n"
+"PO-Revision-Date: 2020-01-19 15:27+0100\n"
+"Last-Translator: Oskar Kunik\n"
 "Language-Team: none\n"
 "Language: pl\n"
 "MIME-Version: 1.0\n"
@@ -20,172 +20,176 @@
 
 #: src/Application.vala:74
 msgid "Search task"
-msgstr ""
+msgstr "Wyszukaj zadanie"
 
 #: src/Application.vala:75
 msgid "Type Task Name"
-msgstr ""
+msgstr "Wpisz nazwę zadania"
 
 #: src/Application.vala:153
 msgid "Edit task"
-msgstr ""
+msgstr "Edytuj zadanie"
 
 #: src/Application.vala:154
 msgid "Delete task"
-msgstr ""
+msgstr "Usuń zadanie"
 
 #: src/Application.vala:155
 msgid "Toggle done"
-msgstr ""
+msgstr "Przełącz status wykonania"
 
 #: src/Application.vala:159 src/TaskDialog.vala:44 src/MainWindow.vala:197
 msgid "Priority"
-msgstr ""
+msgstr "Priorytet"
 
 #: src/Application.vala:162
 msgid "None"
-msgstr ""
+msgstr "Brak"
 
 #: src/Application.vala:383
 msgid "The task has been deleted"
-msgstr ""
+msgstr "Zadanie zostało usunięte"
 
 #: src/Application.vala:385
 msgid "_Undo"
-msgstr ""
+msgstr "_Cofnij"
 
 #: src/Application.vala:448
 msgid "The todo.txt file has been modified and been re-read"
-msgstr ""
+msgstr "Wykryto zmiany w pliku todo.txt i został wczytany ponownie"
 
 #: src/Task.vala:237
 msgid "Today"
-msgstr ""
+msgstr "Dziś"
 
 #: src/Task.vala:240
 msgid "Yesterday"
-msgstr ""
+msgstr "Wczoraj"
 
 #: src/Task.vala:243
 msgid "days ago"
-msgstr ""
+msgstr "dni temu"
 
 #: src/TaskDialog.vala:33
 msgid "New Task"
-msgstr ""
+msgstr "Nowe zadanie"
 
 #: src/TaskDialog.vala:43 src/MainWindow.vala:202
 msgid "Task"
-msgstr ""
+msgstr "Zadanie"
 
 #: src/TaskDialog.vala:88
 msgid ""
 "Adding + to a word will categorize the task.\n"
 "Adding @ to a word will specify the task's place."
 msgstr ""
+"Dodanie + przed słowem określi kategorię zadania.\n"
+"Dodanie @ przed słowem określi miejsce zadania."
 
 #: src/TaskDialog.vala:90
 msgid "Cancel"
-msgstr ""
+msgstr "Anuluj"
 
 #: src/TaskDialog.vala:91
 msgid "OK"
-msgstr ""
+msgstr "OK"
 
 #: src/MainWindow.vala:46
 msgid "Yishu"
-msgstr ""
+msgstr "Yishu"
 
 #: src/MainWindow.vala:91
 msgid "No Todo.txt File Open"
-msgstr ""
+msgstr "Brak otwartego pliku todo.txt"
 
 #: src/MainWindow.vala:91
 msgid "Open a todo.txt file to start adding tasks"
-msgstr ""
+msgstr "Otwórz plik todo.txt by zacząć dodawać zadania"
 
 #: src/MainWindow.vala:92
 msgid "Add task"
-msgstr ""
+msgstr "Dodaj zadanie"
 
 #: src/MainWindow.vala:92
 msgid "Create a new todo.txt file with this task in your Home folder"
-msgstr ""
+msgstr "Stwórz nowy plik todo.txt z tym zadaniem w twoim folderze domowym"
 
 #: src/MainWindow.vala:93
 msgid "What is a todo.txt file?"
-msgstr ""
+msgstr "Czym jest plik todo.txt?"
 
 #: src/MainWindow.vala:93
 msgid "Learn more about todo.txt files"
-msgstr ""
+msgstr "Dowiedz się więcej o plikach todo.txt"
 
 #: src/MainWindow.vala:94
 msgid "No Todo.txt File Found"
-msgstr ""
+msgstr "Nie znaleziono pliku todo.txt"
 
 #: src/MainWindow.vala:94
 msgid "Add tasks to start this todo.txt file"
-msgstr ""
+msgstr "Dodaj zadania by zacząć ten plik todo.txt"
 
 #: src/MainWindow.vala:105
 msgid "Add task…"
-msgstr ""
+msgstr "Dodaj zadanie.."
 
 #: src/MainWindow.vala:109 src/Preferences.vala:28
 msgid "Preferences"
-msgstr ""
+msgstr "Preferencje"
 
 #: src/MainWindow.vala:125
 msgid "Settings"
-msgstr ""
+msgstr "Ustawienia"
 
 #: src/MainWindow.vala:209
 msgid "Done"
-msgstr ""
+msgstr "Zakończone"
 
 #: src/Preferences.vala:38
 msgid "Todo.txt Preferences"
-msgstr ""
+msgstr "Preferencje pliku Todo.txt"
 
 #: src/Preferences.vala:39
 msgid "Default Location:"
-msgstr ""
+msgstr "Domyślne położenie:"
 
 #: src/Preferences.vala:42
 msgid "Home Folder"
-msgstr ""
+msgstr "Folder domowy"
 
 #: src/Preferences.vala:43
 msgid "Dropbox Folder"
-msgstr ""
+msgstr "Folder Dropbox"
 
 #: src/Preferences.vala:44
 msgid "Nextcloud Folder"
-msgstr ""
+msgstr "Folder Nextcloud"
 
 #: src/Preferences.vala:45
 msgid "ownCloud Folder"
-msgstr ""
+msgstr "Folder ownCloud"
 
 #: src/Preferences.vala:46
 msgid "Other Clients Folder"
-msgstr ""
+msgstr "Folder innego klienta"
 
 #: src/Preferences.vala:103
 msgid "Custom Location:"
-msgstr ""
+msgstr "Własna lokalizacja"
 
 #: src/Preferences.vala:105
 msgid "Open your file"
-msgstr ""
+msgstr "Otwórz twój plik"
 
 #: src/Preferences.vala:111
 msgid ""
 "Enabling custom locations will have you save your file\n"
 "in other places not recognized by other clients."
 msgstr ""
+"Ustawienie własnej lokalizacji sprawi, że twój plik zostanie\n"
+"zapisany w miejscu nieznanym dla innych klientów."
 
 #: src/Preferences.vala:160
 msgid "Close"
-msgstr ""
+msgstr "Zamknij"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yishu-1.2.1/po/tr.po new/yishu-1.2.3/po/tr.po
--- old/yishu-1.2.1/po/tr.po    2020-01-17 21:58:10.000000000 +0100
+++ new/yishu-1.2.3/po/tr.po    2020-05-03 18:02:06.000000000 +0200
@@ -8,9 +8,9 @@
 "Project-Id-Version: com.github.lainsce.yishu\n"
 "Report-Msgid-Bugs-To: \n"
 "POT-Creation-Date: 2019-03-30 17:17+0100\n"
-"PO-Revision-Date: 2019-03-30 16:53+0100\n"
-"Last-Translator: Automatically generated\n"
-"Language-Team: none\n"
+"PO-Revision-Date: 2020-03-17 16:53+0100\n"
+"Last-Translator: Önder Bakırtaş\n"
+"Language-Team: Turkish\n"
 "Language: tr\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
@@ -19,172 +19,176 @@
 
 #: src/Application.vala:74
 msgid "Search task"
-msgstr ""
+msgstr "Görev ara"
 
 #: src/Application.vala:75
 msgid "Type Task Name"
-msgstr ""
+msgstr "Görev adı gir"
 
 #: src/Application.vala:153
 msgid "Edit task"
-msgstr ""
+msgstr "Görevi düzenle"
 
 #: src/Application.vala:154
 msgid "Delete task"
-msgstr ""
+msgstr "Görevi sil"
 
 #: src/Application.vala:155
 msgid "Toggle done"
-msgstr ""
+msgstr "Tamamlanma durumunu değiştir"
 
 #: src/Application.vala:159 src/TaskDialog.vala:44 src/MainWindow.vala:197
 msgid "Priority"
-msgstr ""
+msgstr "Öncelik"
 
 #: src/Application.vala:162
 msgid "None"
-msgstr ""
+msgstr "Yok"
 
 #: src/Application.vala:383
 msgid "The task has been deleted"
-msgstr ""
+msgstr "Görev silindi"
 
 #: src/Application.vala:385
 msgid "_Undo"
-msgstr ""
+msgstr "_Geri al"
 
 #: src/Application.vala:448
 msgid "The todo.txt file has been modified and been re-read"
-msgstr ""
+msgstr "Todo.txt dosyası düzenlendi ve yeniden okundu."
 
 #: src/Task.vala:237
 msgid "Today"
-msgstr ""
+msgstr "Bugün"
 
 #: src/Task.vala:240
 msgid "Yesterday"
-msgstr ""
+msgstr "Dün"
 
 #: src/Task.vala:243
 msgid "days ago"
-msgstr ""
+msgstr "gün önce"
 
 #: src/TaskDialog.vala:33
 msgid "New Task"
-msgstr ""
+msgstr "Yeni Görev"
 
 #: src/TaskDialog.vala:43 src/MainWindow.vala:202
 msgid "Task"
-msgstr ""
+msgstr "Görev"
 
 #: src/TaskDialog.vala:88
 msgid ""
 "Adding + to a word will categorize the task.\n"
 "Adding @ to a word will specify the task's place."
 msgstr ""
+"Kelime başına + eklemek, göreve kategori ekler.\n"
+"Kelime başına @ eklemek, görevin yerini belirtir."
 
 #: src/TaskDialog.vala:90
 msgid "Cancel"
-msgstr ""
+msgstr "İptal"
 
 #: src/TaskDialog.vala:91
 msgid "OK"
-msgstr ""
+msgstr "Onayla"
 
 #: src/MainWindow.vala:46
 msgid "Yishu"
-msgstr ""
+msgstr "Yishu"
 
 #: src/MainWindow.vala:91
 msgid "No Todo.txt File Open"
-msgstr ""
+msgstr "Açık Todo.txt Dosyası Yok"
 
 #: src/MainWindow.vala:91
 msgid "Open a todo.txt file to start adding tasks"
-msgstr ""
+msgstr "Görev eklemeye başlamak için bir todo.txt dosyası aç"
 
 #: src/MainWindow.vala:92
 msgid "Add task"
-msgstr ""
+msgstr "Görev ekle"
 
 #: src/MainWindow.vala:92
 msgid "Create a new todo.txt file with this task in your Home folder"
-msgstr ""
+msgstr "Ana klasörünüzde bu görev ile yeni bir todo.txt dosyası oluştur"
 
 #: src/MainWindow.vala:93
 msgid "What is a todo.txt file?"
-msgstr ""
+msgstr "Todo.txt dosyası nedir?"
 
 #: src/MainWindow.vala:93
 msgid "Learn more about todo.txt files"
-msgstr ""
+msgstr "Todo.txt dosyaları hakkında daha fazla bilgi al"
 
 #: src/MainWindow.vala:94
 msgid "No Todo.txt File Found"
-msgstr ""
+msgstr "Hiçbir Todo.txt Dosyası Bulunamadı"
 
 #: src/MainWindow.vala:94
 msgid "Add tasks to start this todo.txt file"
-msgstr ""
+msgstr "Bu todo.txt dosyasını başlatmak için görevler ekle"
 
 #: src/MainWindow.vala:105
 msgid "Add task…"
-msgstr ""
+msgstr "Görev ekle…"
 
 #: src/MainWindow.vala:109 src/Preferences.vala:28
 msgid "Preferences"
-msgstr ""
+msgstr "Tercihler"
 
 #: src/MainWindow.vala:125
 msgid "Settings"
-msgstr ""
+msgstr "Ayarlar"
 
 #: src/MainWindow.vala:209
 msgid "Done"
-msgstr ""
+msgstr "Bitti"
 
 #: src/Preferences.vala:38
 msgid "Todo.txt Preferences"
-msgstr ""
+msgstr "Todo.txt Tercihleri"
 
 #: src/Preferences.vala:39
 msgid "Default Location:"
-msgstr ""
+msgstr "Varsayılan Konum:"
 
 #: src/Preferences.vala:42
 msgid "Home Folder"
-msgstr ""
+msgstr "Ev Klasörü"
 
 #: src/Preferences.vala:43
 msgid "Dropbox Folder"
-msgstr ""
+msgstr "Dropbox Klasörü"
 
 #: src/Preferences.vala:44
 msgid "Nextcloud Folder"
-msgstr ""
+msgstr "Nextcloud Klasörü"
 
 #: src/Preferences.vala:45
 msgid "ownCloud Folder"
-msgstr ""
+msgstr "ownCloud Klasörü"
 
 #: src/Preferences.vala:46
 msgid "Other Clients Folder"
-msgstr ""
+msgstr "Diğer İstemci Klasörü"
 
 #: src/Preferences.vala:103
 msgid "Custom Location:"
-msgstr ""
+msgstr "Özel Konum"
 
 #: src/Preferences.vala:105
 msgid "Open your file"
-msgstr ""
+msgstr "Dosyayını aç"
 
 #: src/Preferences.vala:111
 msgid ""
 "Enabling custom locations will have you save your file\n"
 "in other places not recognized by other clients."
 msgstr ""
+"Özel konumları etkinleştirirsen, kaydettiğin dosya\n"
+"diğer istemciler tarafından tanınamaz."
 
 #: src/Preferences.vala:160
 msgid "Close"
-msgstr ""
+msgstr "Kapat"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yishu-1.2.1/src/Application.vala 
new/yishu-1.2.3/src/Application.vala
--- old/yishu-1.2.1/src/Application.vala        2020-01-17 21:58:10.000000000 
+0100
+++ new/yishu-1.2.3/src/Application.vala        2020-05-03 18:02:06.000000000 
+0200
@@ -121,10 +121,6 @@
                                toggle_show_completed();
                        });
 
-            string homedir = GLib.Environment.get_home_dir ();
-            string home = homedir + "/todo.txt";
-            settings.todo_txt_file_path = home;
-
             if (read_file(null)) {
                                window.welcome.hide();
                                window.tree_view.show();
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yishu-1.2.1/src/Constants/AppSettings.vala 
new/yishu-1.2.3/src/Constants/AppSettings.vala
--- old/yishu-1.2.1/src/Constants/AppSettings.vala      2020-01-17 
21:58:10.000000000 +0100
+++ new/yishu-1.2.3/src/Constants/AppSettings.vala      2020-05-03 
18:02:06.000000000 +0200
@@ -22,7 +22,9 @@
         public int saved_state_height { get; set; }
         public bool show_completed { get; set; }
         public bool custom_file_enable { get; set; }
+        public bool save_search { get; set; }
         public string todo_txt_file_path { get; set; }
+        public string saved_search_string { get; set; }
         
         private static AppSettings? instance;
         public static unowned AppSettings get_default () {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yishu-1.2.1/src/Preferences.vala 
new/yishu-1.2.3/src/Preferences.vala
--- old/yishu-1.2.1/src/Preferences.vala        2020-01-17 21:58:10.000000000 
+0100
+++ new/yishu-1.2.3/src/Preferences.vala        2020-05-03 18:02:06.000000000 
+0200
@@ -35,8 +35,12 @@
         construct {
             var settings = AppSettings.get_default ();
 
-            var header = new Granite.HeaderLabel (_("Todo.txt Preferences"));
-            var label = new SettingsLabel (_("Default Location:"));
+            var header = new Granite.HeaderLabel (_("Interface"));
+            var label = new SettingsLabel (_("Save searches:"));
+            var switch_b = new SettingsSwitch ("save-search");
+
+            var header2 = new Granite.HeaderLabel (_("Todo.txt Preferences"));
+            var label2 = new SettingsLabel (_("Default Location:"));
             list_place = new Gtk.ComboBoxText();
             list_place.hexpand = true;
             list_place.append_text(_("Home Folder"));
@@ -51,7 +55,6 @@
             string nc = homedir + "/Nextcloud/todo.txt";
             string oc = homedir + "/ownCloud/todo.txt";
             string other = homedir + "/bin/todo.txt/todo.txt";
-            settings.todo_txt_file_path = home;
             string file_used = settings.todo_txt_file_path;
 
             if (file_used == home) {
@@ -69,6 +72,12 @@
             } else if (file_used == other) {
                 list_place.set_active(4);
                 debug ("Set as Other");
+            } else {
+                settings.custom_file_enable = true;
+                list_place.set_active(0);
+                list_place.sensitive = false;
+                label2.sensitive = false;
+                debug ("Set as custom");
             }
 
             list_place.changed.connect (() => {
@@ -123,18 +132,28 @@
                 if (settings.custom_file_enable == true) {
                     chooser.sensitive = true;
                     switch_c.active = true;
+                    list_place.sensitive = false;
+                    label2.sensitive = false;
                 } else {
                     chooser.sensitive = false;
                     switch_c.active = false;
+                    list_place.sensitive = true;
+                    label2.sensitive = true;
+                    list_place.set_active(0);
+                    settings.todo_txt_file_path = home;
                 }
             });
 
             if (settings.custom_file_enable == true) {
                 chooser.sensitive = true;
                 switch_c.active = true;
+                list_place.sensitive = false;
+                label2.sensitive = false;
             } else {
                 chooser.sensitive = false;
                 switch_c.active = false;
+                list_place.sensitive = true;
+                label2.sensitive = true;
             }
 
             var hbox = new Gtk.Box (Gtk.Orientation.HORIZONTAL, 6);
@@ -147,10 +166,13 @@
             main_grid.column_spacing = 12;
             main_grid.attach (header, 0, 1, 1, 1);
             main_grid.attach (label, 0, 2, 1, 1);
-            main_grid.attach (list_place, 1, 2, 3, 1);
-            main_grid.attach (label_c, 0, 3, 1, 1);
-            main_grid.attach (hbox, 1, 3, 3, 1);
-            main_grid.attach (custom_help, 4, 3, 1, 1);
+            main_grid.attach (switch_b, 1, 2, 1, 1);
+            main_grid.attach (header2, 0, 3, 1, 1);
+            main_grid.attach (label2, 0, 4, 1, 1);
+            main_grid.attach (list_place, 1, 4, 3, 1);
+            main_grid.attach (label_c, 0, 5, 1, 1);
+            main_grid.attach (hbox, 1, 5, 3, 1);
+            main_grid.attach (custom_help, 4, 5, 1, 1);
 
             var content = this.get_content_area () as Gtk.Box;
             content.margin = 6;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yishu-1.2.1/src/SearchEntry.vala 
new/yishu-1.2.3/src/SearchEntry.vala
--- old/yishu-1.2.1/src/SearchEntry.vala        2020-01-17 21:58:10.000000000 
+0100
+++ new/yishu-1.2.3/src/SearchEntry.vala        2020-05-03 18:02:06.000000000 
+0200
@@ -37,6 +37,12 @@
             var sort_model = new Gtk.TreeModelSort.with_model (filter_model);
             process_view.set_model (sort_model);
 
+            var settings = AppSettings.get_default ();
+            if (settings.save_search) {
+                this.text = settings.saved_search_string;
+            }
+            
+
             this.show_all ();
         }
 
@@ -50,6 +56,11 @@
                     Gtk.TreePath tree_path = new Gtk.TreePath.from_indices (0, 
0);
                     process_view.set_cursor (tree_path, null, false);
                     process_view.grab_focus ();
+
+                    var settings = AppSettings.get_default ();
+                    if (settings.save_search) {
+                        settings.saved_search_string = this.text;
+                    }
                 }
             });
         }


Reply via email to