From fc8419109541080b4daf0a23bd84090be6faef7e Mon Sep 17 00:00:00 2001 From: Creak Date: Mon, 7 Nov 2022 16:20:56 -0500 Subject: [PATCH] Prompt once to reload if more than one file modified externally (bis) (#180) * Create only one dialog even if multiple files has been changed on disk * fix: the calls to `NumericDialog` weren't working * use `transient_for` instead of `parent` when creating new `Gtk.Dialog` * Changelog: I removed the "thanks to" (just kept the mentions to the users), because it felt weird to put "thanks to myself" :sweat_smile: Co-authored-by: Yurii Zolotko --- CHANGELOG.md | 15 ++- ....github.mightycreak.Diffuse.appdata.xml.in | 2 +- src/diffuse/dialogs.py | 64 +++++++----- src/diffuse/main.py | 97 ++++++++++++------- src/diffuse/utils.py | 20 ++-- 5 files changed, 121 insertions(+), 77 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 08bed7e..eb49db1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,11 +9,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added -- Language: initial support for Rust language (thanks to @alopatindev) +- Language: initial support for Rust language (@alopatindev) ### Changed -- Translation: updated Swedish translation (thanks to @eson57) +- Translation: updated Swedish translation (@eson57) +- Dialog: prompt only once if several files needs to be reloaded (@yuriiz) + +### Fixed + +- fix: "Go to line..." dialog didn't show up (@MightyCreak) +- Tech debt: use `transient_for` instead of the deprecated `parent` when creating + a `Gtk.Widget` (@MightyCreak) - Documentation: prefer `pip3` over `pip` to ensure it works everywhere (thanks to @krlmlr) @@ -21,7 +28,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed -- Translation: updated Spanish translation (thanks to @oscfdezdz) +- Translation: updated Spanish translation (@oscfdezdz) - Translation: updated POT file - Translation: fixed issue with commented string that still needs translation @@ -29,7 +36,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added -- Port to Mac OS (thanks to @hugoholgersson) +- Port to Mac OS (@hugoholgersson) ### Changed diff --git a/data/io.github.mightycreak.Diffuse.appdata.xml.in b/data/io.github.mightycreak.Diffuse.appdata.xml.in index 1d11417..255c0f7 100644 --- a/data/io.github.mightycreak.Diffuse.appdata.xml.in +++ b/data/io.github.mightycreak.Diffuse.appdata.xml.in @@ -48,7 +48,7 @@

Added:

Changed: