# HG changeset patch # User Goffi # Date 1580845637 -3600 # Node ID 3669a26ef7d93707a3224b4cd62e83d222bf3beb # Parent a90f26e89a4a1762014a1cc45b003e37371a5308 share widget: display only name of the file instead of full path in GenericPreview diff -r a90f26e89a4a -r 3669a26ef7d9 cagou/kv/share_widget.kv --- a/cagou/kv/share_widget.kv Tue Feb 04 20:47:17 2020 +0100 +++ b/cagou/kv/share_widget.kv Tue Feb 04 20:47:17 2020 +0100 @@ -14,6 +14,7 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . +#:import Path pathlib.Path #:import _ sat.core.i18n._ #:import C cagou.core.constants.Const @@ -108,6 +109,6 @@ Widget: SymbolLabel: symbol: "doc" - text: root.path + text: Path(root.path).name Widget: