HippoEDIT homepage Welcome, Guest. Please login or register.
September 10, 2010, 08:52:24 pm
Home Help Search Login Register

+  HippoEDIT - Programmers text editor
|-+  General Category
| |-+  Bug reports
| | |-+  Solved (Moderators: alex, Stefan)
| | | |-+  Remove current file from project works only after reload
« previous next »
Pages: [1] Print
Author Topic: Remove current file from project works only after reload  (Read 317 times)
Stefan
Administrator
Hero Member
*****

Karma: +6/-0
Offline Offline

Posts: 684



View Profile
« 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 » Logged

Stefan, HippoEDIT beta tester  (HippoEDIT News On Twitter: http://twitter.com/hippoedit/)
alex
Developer
Global Moderator
Hero Member
*****

Karma: +19/-2
Online Online

Gender: Male
Posts: 1335



View Profile WWW
« 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 Huh? Smiley 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.

Logged

Stefan
Administrator
Hero Member
*****

Karma: +6/-0
Offline Offline

Posts: 684



View Profile
« 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   Cheesy

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.


Logged

Stefan, HippoEDIT beta tester  (HippoEDIT News On Twitter: http://twitter.com/hippoedit/)
alex
Developer
Global Moderator
Hero Member
*****

Karma: +19/-2
Online Online

Gender: Male
Posts: 1335



View Profile WWW
« 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.
Logged

Pages: [1] Print 
« previous next »
Jump to:  


Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC