PDA

View Full Version : Remove "default folder"


sollie
2006-02-24, 15:41
is it possible to make a contextmenu option to remove a "default folder". i can make one with the gui but not remove.

kraqh3d
2006-02-24, 15:45
sure, i'll throw that in this weekend.

sollie
2006-02-24, 15:47
thanks

HarshReality
2006-02-24, 18:23
i'll figure this one out after implimentation i think...

unless you can give an example of usage.

kraqh3d
2006-02-24, 18:49
sollie is right. you can set the currently highlighted share as the default share from the context menu, but theres no way to remove the default tag from the context menu. (ie, you dont want a default anymore.)

it'll be a very simple change to add a context menu item that will remove the current default (regardless of what's highlighted)...

if (!default.isempty())
addbutton("remove default");

jmarshall
2006-02-24, 23:08
one other note on this point - if we aren't already, we should be checking in remove share and remove the default setting if it was set to the share we are removing.

amadawn
2006-02-28, 23:56
actually, although there is a gui option to set the default share, i personally have not been able to make it work. i mean that when i reboot the xbox and go back to xbmc and open my videos (for instance) the cursor is highlighting the first (top) share, not the one that i selected to be the default. is that how it is supposed to be working?

is there a way to set in xboxmediacenter.xml which is the default share?

thanks!

angel

kraqh3d
2006-03-01, 00:12
yes. fill in the <default> tag under each media type.

http://manual.xboxmediacenter.de/wakka.p....l&v=7m8 (http://manual.xboxmediacenter.de/wakka.php?wakka=bookmarksxml&v=7m8)

** edit ** this is what the "set as default" option in the gui should be doing. if you test it, and it doesnt work, post the details including the actual share that should've been defined as the default, and the contents of the default tag. also, check your log file. there are some sanity checks done to ensure that the default matches an existing share.

jmarshall
2006-03-01, 00:13
works fine here.

all it does is sets the <default> tag in xboxmediacenter.xml

see my sig for the online manual, and take a look in the my videos section (among others) to see how you set it.

nb: it might pay for you to send your xboxmediacenter.xml file to us so that we can reproduce this fault.

please paste it to www.pastebin.com or similar (you may change any passwords/usernames etc.)

Nuka1195
2006-03-01, 00:36
which xboxmediacenter.xml are you editing? a softmodded xbox has two, one in the boot directory and the one in the home directory.

if your editing the one in the home directory, maybe that's why it isn't working?

amadawn
2006-03-01, 03:12
which xboxmediacenter.xml are you editing? a softmodded xbox has two, one in the boot directory and the one in the home directory.

if your editing the one in the home directory, maybe that's why it isn't working?
i am not modifying any xboxmediacenter.xml file yet. so far i had only tried to use the gui to set the default. i will get the xboxmediacenter.xml (the one on the e:/dashboard directory) and see if it contains a <default> tag in the <my videos> section.

thanks for the answers! i'll keep you posted.

C-Quel
2006-03-01, 09:35
removing 'default' would be very useful thanks guy for looking into adding this.

kraqh3d
2006-03-01, 16:11
hopefully, i'll have a little time this coming weekend to add the remove, and the check to reset the default if you delete the share that was the default.

sollie
2006-03-04, 13:27
kragh3d, thanks for looking into this. but i have a question:
is it possible to add "clear default" only for default bookmarks and "make default"only for bookmarks who arent default.

when that is possible it would be cool to give the default bookmark a special ovelay icon.

thanks for all.

sollie.

pike
2006-03-04, 16:25
could "delete" on a share be changed into "remove source" (so it follows the same std as add/edit?

also remove makes more sense than delete.

tia

C-Quel
2006-03-04, 16:43
combining the button like watched & unwatched would be nice :)

i.e. toggle button keep the context nice and sweet!

sollie
2006-03-04, 17:37
unwatched overlay icon arent needed i think. ony a overlay icon when the movie is watched. and a button to hide watched movies.

sollie

kraqh3d
2006-03-05, 02:45
sollie,
yes it could be done but i didnt do that because i think its kind of stupid. this may change if there was a visual way of marking the default share, but until then, restricting the context menu items is somewhat useless. that, and you should be able to clear the default regardless of whats currently highlighted. why move up to it to clear it?? (as it stands, "clear" is only valid if there is deafult.)

i thought i had combined the watched/unwatched button into a single item??? lemme double check. maybe i forgot to commit :)

** edit **
in my build, i dont see both "mark as watched" and "mark as unwatched" in the context menu at the same time. if the movie is watched, it says "mark as unwatched". if the movie is unwatched, it says "mark as watched."

if you want a "toggle", then just change both "mark as" strings in strings.xml to "toggle watched state" or something like that.

kraqh3d
2006-03-05, 02:45
sollie,
there already is a button to hide watched movies. it toggles between "all movies" -> "watched" -> "unwatched".

C-Quel
2006-03-05, 13:34
kraqh3d i was on about a toggle for default button *as per topic* but sollie threw it completely off topic!!!

i know the toggle works for watched & unwatched! i mentioned that as reference :)

sollie
2006-03-05, 13:51
kraqh3d i was on about a toggle for default button *as per topic* but sollie threw it completely off topic!!!

lol

yes it could be done but i didnt do that because i think its kind of stupid. this may change if there was a visual way of marking the default share, but until then, restricting the context menu items is somewhat useless. that, and you should be able to clear the default regardless of whats currently highlighted. why move up to it to clear it?? (as it stands, "clear" is only valid if there is deafult.)

ok, then i am satisfied and stop requesting on this topic.

thanks,

sollie.

pike
2006-03-05, 14:14
could "delete" on a share be changed into "remove source" (so it follows the same std as add/edit? (needs a new label)

also to further explain, remove makes more sense than delete.

tia
:bump:

or isnt this the topic for this ?

C-Quel
2006-03-05, 15:15
yes i agree remove would make more sense pike. completely on topic :d

kraqh3d
2006-03-05, 15:38
i'll have to take a look. if it says "delete share" then its just a strings change. if it says "delete" then its a simple code change with a string addition. i'll make that change later today.