Skip to content

Commit 3ff6c62

Browse files
committed
Add datetime string to recovery options, to make it easier to distinguish between similar versions
1 parent 3f0aa6a commit 3ff6c62

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/windows/main_window.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -2907,10 +2907,11 @@ def populate_restore_menu(self):
29072907
try:
29082908
timestamp = int(file_name.split("-", 1)[0])
29092909
friendly_time = self.time_ago_string(timestamp)
2910+
full_datetime = datetime.fromtimestamp(timestamp).strftime('%b %d, %H:%M')
29102911
file_path = os.path.join(recovery_dir, file_name)
29112912

2912-
# Add each recovery file
2913-
new_action = self.restore_menu.addAction(friendly_time)
2913+
# Add each recovery file with a tooltip
2914+
new_action = self.restore_menu.addAction(f"{friendly_time} ({full_datetime})")
29142915
new_action.triggered.connect(functools.partial(self.restore_version_clicked, file_path))
29152916
except ValueError:
29162917
continue

0 commit comments

Comments
 (0)