From b8d529466d5a8dec2ea79f14842210f99dd3efe0 Mon Sep 17 00:00:00 2001 From: tmksw <36006451+tmksw@users.noreply.github.com> Date: Mon, 20 Nov 2023 18:21:12 +0100 Subject: [PATCH] [Start WB] extend file info in MRU tooltip (#11450) --- src/Mod/Start/StartPage/StartPage.py | 17 ++++++++++------- src/Mod/Start/StartPage/TranslationTexts.py | 4 ++++ 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/src/Mod/Start/StartPage/StartPage.py b/src/Mod/Start/StartPage/StartPage.py index fa735faf1b..04361d73d8 100644 --- a/src/Mod/Start/StartPage/StartPage.py +++ b/src/Mod/Start/StartPage/StartPage.py @@ -180,6 +180,7 @@ def getInfo(filename): lic = TranslationTexts.T_UNKNOWN image = None descr = "" + path = os.path.abspath(filename) # get additional info from fcstd files if filename.lower().endswith(".fcstd"): @@ -279,7 +280,7 @@ def getInfo(filename): else: image = getDefaultIcon() iconbank[t] = image - return [image, size, author, ctime, mtime, descr, company, lic] + return [image, size, author, ctime, mtime, descr, company, lic, path] return None @@ -364,13 +365,15 @@ def buildCard(filename, method, arg=None): arg = basename finfo = getInfo(filename) if finfo: - image = finfo[0] - size = finfo[1] - author = finfo[2] - infostring = TranslationTexts.T_CREATIONDATE + ": " + finfo[3] + "\n" - infostring += TranslationTexts.T_LASTMODIFIED + ": " + finfo[4] + image, size, author, ctime, mtime, descr, company, lic, path = finfo + infostring = TranslationTexts.T_CREATIONDATE + ": " + ctime + "\n" + infostring += TranslationTexts.T_LASTMODIFIED + ": " + mtime + "\n" + infostring += TranslationTexts.T_SIZE + ": " + size + "\n" + infostring += TranslationTexts.T_AUTHOR + ": " + author + "\n" + infostring += TranslationTexts.T_LICENSE + ": " + lic + "\n" + infostring += TranslationTexts.T_FILEPATH + ": " + path + "\n" if finfo[5]: - infostring += "\n\n" + finfo[5] + infostring += "\n\n" + descr if size: result += '