Move spyder.patch to the subdirectory of the corresponding role
This commit is contained in:
parent
4c2e657c98
commit
f8cbb53cb7
1 changed files with 0 additions and 0 deletions
23
roles/lmn_tmpfixes/files/spyder.patch
Normal file
23
roles/lmn_tmpfixes/files/spyder.patch
Normal file
|
@ -0,0 +1,23 @@
|
|||
--- /usr/lib/python3/dist-packages/spyder/plugins/editor/widgets/editor.py 2024-06-20 07:16:54.096395325 +0200
|
||||
+++ /usr/lib/python3/dist-packages/spyder/plugins/editor/widgets/editor.py 2024-06-20 14:39:07.693577124 +0200
|
||||
@@ -2370,15 +2370,16 @@
|
||||
else:
|
||||
# Else, testing if it has been modified elsewhere:
|
||||
lastm = QFileInfo(finfo.filename).lastModified()
|
||||
- if to_text_string(lastm.toString()) \
|
||||
- != to_text_string(finfo.lastmodified.toString()):
|
||||
+ dt = finfo.lastmodified.msecsTo(lastm)
|
||||
+ if dt > 1000:
|
||||
if finfo.editor.document().isModified():
|
||||
self.msgbox = QMessageBox(
|
||||
QMessageBox.Question,
|
||||
self.title,
|
||||
- _("<b>%s</b> has been modified outside Spyder."
|
||||
+ _("It looks like <b>%s</b> has been modified "
|
||||
+ "outside Spyder. The working copy is from %i milliseconds ago."
|
||||
"<br>Do you want to reload it and lose all "
|
||||
- "your changes?") % name,
|
||||
+ "your changes?") % (name, dt),
|
||||
QMessageBox.Yes | QMessageBox.No,
|
||||
self)
|
||||
answer = self.msgbox.exec_()
|
Loading…
Add table
Add a link
Reference in a new issue