<blockquote>
<p>I get the reload indicator if ./tempdir/file1 is more recent than ./file1 (and ./file1 is open in Geany).</p>
</blockquote>
<p>Isn't that the situation with your reproduce instructions in the OP, <code>temp/file1</code> is created after <code>./file1</code>?  Which is why it worked for me.</p>
<p>If its the other way around and the file manager copies the date/time from the older file to the newer file during a copy then yes there is no prompt because <a href="https://github.com/geany/geany/blob/11436f58defe5312c4d6eec1225868c5dca585e4/src/document.c#L3725">the compare</a> is <code><</code> not just <code>!=</code>.  Its been that way for at least the 10 years I looked back before I got bored.  And the info message does say "file on disk is newer" so I would say its intentional, the code is looking for a file that has been modified after it was last saved, so its mtime should be newer.</p>
<p>File managers backdating the modification time on changed files is a "bad thing" because if it does that to a source code file then <code>make</code> will break when next run <g-emoji class="g-emoji" alias="cry" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f622.png">😢</g-emoji> .</p>
<p>Plain <code>cp</code> of course sets the mtime to now, not the from file time, when it does the copy so you get the message.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/issues/2133#issuecomment-487450206">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJZUNYVZSLTXVMP7TDLPSZ4FDANCNFSM4HI2SZYQ">mute the thread</a>.<img src="https://github.com/notifications/beacon/AAIOWJ3YIEQQ3AEPHYLLLATPSZ4FDANCNFSM4HI2SZYQ.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/geany/geany","title":"geany/geany","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/geany/geany"}},"updates":{"snippets":[{"icon":"PERSON","message":"@elextr in #2133: \u003e  I get the reload indicator if ./tempdir/file1 is more recent than ./file1 (and ./file1 is open in Geany).\r\n\r\nIsn't that the situation with your reproduce instructions in the OP, `temp/file1` is created after `./file1`?  Which is why it worked for me.\r\n\r\nIf its the other way around and the file manager copies the date/time from the older file to the newer file during a copy then yes there is no prompt because [the compare](https://github.com/geany/geany/blob/11436f58defe5312c4d6eec1225868c5dca585e4/src/document.c#L3725) is `\u003c` not just `!=`.  Its been that way for at least the 10 years I looked back before I got bored.  And the info message does say \"file on disk is newer\" so I would say its intentional, the code is looking for a file that has been modified after it was last saved, so its mtime should be newer.\r\n\r\nFile managers backdating the modification time on changed files is a \"bad thing\" because if it does that to a source code file then `make` will break when next run :cry: .\r\n\r\nPlain `cp` of course sets the mtime to now, not the from file time, when it does the copy so you get the message.\r\n"}],"action":{"name":"View Issue","url":"https://github.com/geany/geany/issues/2133#issuecomment-487450206"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/issues/2133#issuecomment-487450206",
"url": "https://github.com/geany/geany/issues/2133#issuecomment-487450206",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>