[haiku-bugs] Re: [Haiku] #8524: Renaming the currently viewed file trips ShowImage

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Sat, 13 Jun 2020 01:28:19 -0000

#8524: Renaming the currently viewed file trips ShowImage
-------------------------------------+----------------------------
  Reporter:  mmadia                  |      Owner:  leavengood
      Type:  bug                     |     Status:  new
  Priority:  normal                  |  Milestone:  R1
 Component:  Applications/ShowImage  |    Version:  R1/Development
Resolution:                          |   Keywords:
Blocked By:                          |   Blocking:
  Platform:  All                     |
-------------------------------------+----------------------------
Comment (by leavengood):

 Yes, watching for the file name change is the plan. The reason this has
 not been done yet is apparently no one else has been interested, and I
 have not had much time for Haiku for a while. I hope to be able to work on
 ShowImage again soon.

 But besides the above there is a more technical excuse: the structure of
 ShowImage code makes this fairly difficult. The ShowImage view and window
 which actually display the image don't have the necessary knowledge about
 the file. My plan is to introduce an `ImageModel` or similar idea to
 represent the image data, and that can "own" the file information and
 watch for file name changes, etc.

 Doing this will allow for solving several other longstanding bugs in
 ShowImage as well.

 I hope I can do this before the next release, which probably will be Beta
 3.
-- 
Ticket URL: <https://dev.haiku-os.org/ticket/8524#comment:3>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: