Author Topic: Remove current file from project works only after reload  (Read 2920 times)

Offline Stefan

  • Administrator
  • Hero Member
  • *****
  • Posts: 775
  • Karma: +6/-0
Remove current file from project works only after reload
« on: December 29, 2009, 01:17:56 AM »
- I have added all open files to an project and saved this project.
- Then i want to remove one file which not belongs to this project,
   but the menu item "Remove current file" was greyed out.

I had to close and reopen this project to be able to use this option.
I think this additional step is an bug?

(752)


EDIT:
the second time this works fine.
The different was the now open project pane.

If i try again from fresh i can reproduce:
- open NOT the project pane, i have the file explorer open
- Project menu > Save as...
- Project menu > Add > All open files
- Project menu > try to remove one file via project menu.... the item is greyed out
- open the project pane... the item to remove an file is accessible
« Last Edit: December 29, 2009, 01:23:52 AM by Stefan »
Stefan, HippoEDIT beta tester 
HippoEDIT - the editor programmers wants to code thyself when they are dreaming.        -Don't just edit. HippoEDIT!-

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2206
  • Karma: +37/-3
    • HippoEDIT
Re: Remove current file from project works only after reload
« Reply #1 on: December 29, 2009, 01:33:54 AM »
Hi Stefan,

yes, probably you are right...

It is at all not very clear... There are two commands: Remove in context menu of Project Pane and "Remove current file" in Project menu. Even I do not know without checking the code are they are same or different ??? :) As far as I remember, there was some logic that takes current open file as source file if no file is selected in project pane... But I think this is very confusing... So probably I will at all remove entry from project menu or just decide that this is different command, that only works with currently open file.

What do you think?
The problem you have reported is bug for sure. I will fix it in beta 1.48.
All functions should work even without save of project. And I see also bugs on adding current file to project in context menu of editor (it should be always suggested if file is not in project and project is not initial).

Best regards,
Alex.


Offline Stefan

  • Administrator
  • Hero Member
  • *****
  • Posts: 775
  • Karma: +6/-0
Re: Remove current file from project works only after reload
« Reply #2 on: December 29, 2009, 02:24:43 AM »
... So probably I will at all remove entry from project menu
or just decide that this is different command, that only works with currently open file.

What do you think?

A> What do you think?
I am thinking i am now confused and don't know if you ask me about removing the menu item.. or what   :D

I think you shouldn't remove this item,
and, that this item works with the current open/viewed file is just fine, just what is expected.
It only has to work, -- which you want to check/fix for the next build, fine too.

So all went fine.



Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2206
  • Karma: +37/-3
    • HippoEDIT
Re: Remove current file from project works only after reload
« Reply #3 on: December 29, 2009, 12:13:30 PM »
Ok,

confusion is that you do not know what is the current file... Currently selected in work area as document or some file selected (focused) in a Project Tree.

But OK, I will leave an entry in the Project menu, but will check that it only works with current document open in the work area.

Best regards,
Alex.