changeset 384:3669a26ef7d9

share widget: display only name of the file instead of full path in GenericPreview
author Goffi <goffi@goffi.org>
date Tue, 04 Feb 2020 20:47:17 +0100
parents a90f26e89a4a
children 6dacaf81339a
files cagou/kv/share_widget.kv
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 <http://www.gnu.org/licenses/>.
 
+#: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: