Hello community, here is the log from the commit of package quilter for openSUSE:Leap:15.2 checked in at 2020-02-21 23:53:05 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Leap:15.2/quilter (Old) and /work/SRC/openSUSE:Leap:15.2/.quilter.new.26092 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "quilter" Fri Feb 21 23:53:05 2020 rev:29 rq:778024 version:2.1.1 Changes: -------- --- /work/SRC/openSUSE:Leap:15.2/quilter/quilter.changes 2020-02-21 13:54:13.490074925 +0100 +++ /work/SRC/openSUSE:Leap:15.2/.quilter.new.26092/quilter.changes 2020-02-21 23:53:08.181017731 +0100 @@ -1,0 +2,8 @@ +Wed Feb 19 19:10:35 UTC 2020 - Alexei Podvalsky <[email protected]> + +- Update to 2.1.1: + * Fixed: Would duplicate files when open in the sidebar + * Fixed: If the sidebar was empty and Quilter was reopened, last + file contents would still appear + +------------------------------------------------------------------- Old: ---- quilter-2.1.0.tar.gz New: ---- quilter-2.1.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ quilter.spec ++++++ --- /var/tmp/diff_new_pack.xvYPA6/_old 2020-02-21 23:53:08.613018589 +0100 +++ /var/tmp/diff_new_pack.xvYPA6/_new 2020-02-21 23:53:08.617018598 +0100 @@ -17,7 +17,7 @@ Name: quilter -Version: 2.1.0 +Version: 2.1.1 Release: 0 Summary: Writing application License: GPL-3.0-only ++++++ quilter-2.1.0.tar.gz -> quilter-2.1.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/quilter-2.1.0/data/com.github.lainsce.quilter.appdata.xml.in new/quilter-2.1.1/data/com.github.lainsce.quilter.appdata.xml.in --- old/quilter-2.1.0/data/com.github.lainsce.quilter.appdata.xml.in 2020-01-15 07:34:18.000000000 +0100 +++ new/quilter-2.1.1/data/com.github.lainsce.quilter.appdata.xml.in 2020-02-10 06:44:07.000000000 +0100 @@ -55,6 +55,15 @@ <content_attribute id="money-gambling">none</content_attribute> </content_rating> <releases> + <release version="2.1.1" date="2020-02-14"> + <description> + <p>Release: Swift Scenes</p> + <ul> + <li>Fixed: Would duplicate files when open in the sidebar</li> + <li>Fixed: If the sidebar was empty and Quilter was reopened, last file contents would still appear</li> + </ul> + </description> + </release> <release version="2.1.0" date="2020-01-17"> <description> <p>Release: Beautiful Backend</p> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/quilter-2.1.0/flatpak/com.github.lainsce.quilter.json new/quilter-2.1.1/flatpak/com.github.lainsce.quilter.json --- old/quilter-2.1.0/flatpak/com.github.lainsce.quilter.json 2020-01-15 07:34:18.000000000 +0100 +++ new/quilter-2.1.1/flatpak/com.github.lainsce.quilter.json 1970-01-01 01:00:00.000000000 +0100 @@ -1,95 +0,0 @@ -{ - "app-id" : "com.github.lainsce.quilter", - "base" : "io.elementary.BaseApp", - "base-version" : "juno", - "runtime" : "org.gnome.Platform", - "sdk" : "org.gnome.Sdk", - "runtime-version" : "3.32", - "command" : "com.github.lainsce.quilter", - "rename-icon" : "com.github.lainsce.quilter", - "finish-args" : [ - "--filesystem=home", - "--socket=wayland", - "--socket=x11", - "--own-name=com.github.lainsce.quilter", - "--talk-name=org.gtk.vfs", - "--talk-name=org.gtk.vfs.*", - "--talk-name=org.gnome.SettingsDaemon", - "--filesystem=xdg-run/dconf", - "--filesystem=xdg-config/dconf:ro", - "--talk-name=ca.desrt.dconf", - "--env=DCONF_USER_CONFIG_DIR=.config/dconf" - ], - "cleanup" : [ - "/include", - "/lib/pkgconfig", - "/share/vala", - "/man", - "*.a", - "*.la" - ], - "modules" : [ - { - "name" : "gtksourceview", - "config-opts" : [ - "--disable-gtk-doc" - ], - "sources" : [ - { - "type" : "archive", - "url" : "https://download.gnome.org/sources/gtksourceview/3.24/gtksourceview-3.24.8.tar.xz", - "sha256" : "1e9bb8ff190db705deb916dd23ff681f0e8803aec407bf0fd64c7e615ac436fe" - } - ] - }, - { - "name" : "gtkspell", - "sources" : [ - { - "type" : "archive", - "url" : "https://sourceforge.net/projects/gtkspell/files/3.0.10/gtkspell3-3.0.10.tar.xz", - "sha256" : "b040f63836b347eb344f5542443dc254621805072f7141d49c067ecb5a375732" - } - ] - }, - { - "name" : "discount", - "config-opts" : [ - "--shared", - "--with-fenced-code", - "--pkg-config" - ], - "cleanup" : [ - "/bin" - ], - "sources" : [ - { - "type" : "archive", - "url" : "http://www.pell.portland.or.us/~orc/Code/discount/discount-2.2.4.tar.bz2", - "sha256" : "74fd1e3cc2b4eacf7325d3fd89df38b589db60d5dd0f4f14a0115f7da5e230a5" - }, - { - "type" : "shell", - "commands" : [ - "ln -s configure.sh configure" - ] - } - ] - }, - { - "name" : "quilter", - "buildsystem" : "meson", - "sources" : [ - { - "type" : "archive", - "url" : "https://github.com/lainsce/quilter/archive/1.9.0.zip", - "sha256" : "385c73ed931ad06f4b34397bf3c4a1a7f270c8aa4507e782543c930c5ab45065" - } - ] - } - ], - "build-options" : { - "env" : { - } - } -} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/quilter-2.1.0/meson.build new/quilter-2.1.1/meson.build --- old/quilter-2.1.0/meson.build 2020-01-15 07:34:18.000000000 +0100 +++ new/quilter-2.1.1/meson.build 2020-02-10 06:44:07.000000000 +0100 @@ -1,6 +1,6 @@ # Name our project project('com.github.lainsce.quilter', ['vala', 'c'], - version: '2.1.0' + version: '2.1.1' ) # Import main lib files diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/quilter-2.1.0/src/MainWindow.vala new/quilter-2.1.1/src/MainWindow.vala --- old/quilter-2.1.0/src/MainWindow.vala 2020-01-15 07:34:18.000000000 +0100 +++ new/quilter-2.1.1/src/MainWindow.vala 2020-02-10 06:44:07.000000000 +0100 @@ -91,8 +91,11 @@ Services.FileManager.get_cache_path (); if (Quilter.Application.gsettings.get_string("current-file") == "") { Quilter.Application.gsettings.set_string("current-file", Services.FileManager.get_temp_document_path ()); - sidebar.add_file (Services.FileManager.get_temp_document_path ()); edit_view_content.buffer.text = ""; + sidebar.add_file (Services.FileManager.get_temp_document_path ()); + sidebar.store.clear (); + sidebar.outline_populate (); + sidebar.view.expand_all (); } on_settings_changed (); @@ -111,8 +114,8 @@ sidebar.outline_populate (); sidebar.view.expand_all (); } else { - sidebar.add_file (Services.FileManager.get_temp_document_path ()); edit_view_content.buffer.text = ""; + sidebar.add_file (Services.FileManager.get_temp_document_path ()); } }); @@ -416,7 +419,10 @@ foreach (unowned Widgets.SideBarBox row in sidebar.get_rows ()) { if (row.path != _("No Documents Open")) { files += row.path; - } + } + } + if (sidebar.column.get_children () == null) { + Quilter.Application.gsettings.set_string("current-file", ""); } Quilter.Application.gsettings.set_strv("last-files", files); @@ -631,10 +637,10 @@ edit_view_content.text = contents; - if (Quilter.Application.gsettings.get_strv("last-files") != null && path != _("No Documents Open")) { + if (path == Quilter.Application.gsettings.get_string("current-file")) { + sidebar.delete_row (); sidebar.add_file (path); } else { - sidebar.delete_row (); sidebar.add_file (path); } } @@ -643,7 +649,7 @@ unowned Widgets.SideBarBox? row = sidebar.get_selected_row (); if (row != null) { try { - Services.FileManager.save_file (row.path ?? Services.FileManager.get_cache_path (), edit_view_content.text); + Services.FileManager.save_file (row.path ?? Services.FileManager.get_temp_document_path (), edit_view_content.text); edit_view_content.modified = false; } catch (Error e) { warning ("Unexpected error during save: " + e.message); @@ -707,4 +713,4 @@ update_title (); } } -} \ No newline at end of file +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/quilter-2.1.0/src/Widgets/SideBar.vala new/quilter-2.1.1/src/Widgets/SideBar.vala --- old/quilter-2.1.0/src/Widgets/SideBar.vala 2020-01-15 07:34:18.000000000 +0100 +++ new/quilter-2.1.1/src/Widgets/SideBar.vala 2020-02-10 06:44:07.000000000 +0100 @@ -109,12 +109,6 @@ column.set_sort_func (list_sort); column.set_placeholder (no_files); - if (Quilter.Application.gsettings.get_string("current-file") == "") { - filebox = new SideBarBox (this.win, Services.FileManager.get_cache_path ()); - column.insert (filebox, 1); - column.select_row (filebox); - } - for (int i = 0; i < Quilter.Application.gsettings.get_strv("last-files").length; i++) { var row = add_file (Quilter.Application.gsettings.get_strv("last-files")[i]); if (Quilter.Application.gsettings.get_strv("last-files")[i] == Quilter.Application.gsettings.get_string("current-file")) { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/quilter-2.1.0/src/Widgets/SideBarBox.vala new/quilter-2.1.1/src/Widgets/SideBarBox.vala --- old/quilter-2.1.0/src/Widgets/SideBarBox.vala 2020-01-15 07:34:18.000000000 +0100 +++ new/quilter-2.1.1/src/Widgets/SideBarBox.vala 2020-02-10 06:44:07.000000000 +0100 @@ -106,7 +106,6 @@ } } else if (Quilter.Application.gsettings.get_strv("last-files")[i] == null) { win.sidebar.add_file (Services.FileManager.get_temp_document_path ()); - //Quilter.Application.gsettings.set_string("current-file", Services.FileManager.get_cache_path ()); } } });
