tweecode / twine

UI for creating hypertext stories
http://twinery.org
657 stars 97 forks source link

Auto Build functionallity incorrectly assumes that buildDestination has a value #80

Closed greyelf closed 10 years ago

greyelf commented 11 years ago

The buildDestination variable is set via either the 'Build Story' menu item or from store state.

If user creates a new story and turns on the 'Auto Build' feature without first using 'Build Story' then buildDestination wont have a value when the autoBuildTick method is called. This results in a error.

A possible solution would be to enable / disable the 'Auto Build' menu item based on buildDestination the same way the 'Rebuild Story' menu item is.

eg. autoItem = self.menus.FindItemById(StoryFrame.STORY_AUTO_BUILD) autoItem.Enable(self.buildDestination != '')

webbedspace commented 10 years ago

This should be fixed now.