Skip to content

Triggers not saved when editing in sidebar #248

@pjrobertson

Description

@pjrobertson

Go ahead and add

    NSLog(@"writing triggers");

to QSTriggerCenter.m:181

It'll tell you when the triggers are going to get written to the .plist.

Go into QS and have a play with the triggers. You'll see that the ONLY place triggers get saved to the .plist is when you
a) Create a new trigger
b) select another trigger in the list

Basically, anything you do in the sidebar (except setting the hotkey) doesn't get written anywhere. You have to click on say another trigger to save it.

I'm posting this here since I don't know enough about NSViews and stuff.

I had a quick look into it and thought you could either set an observer for when the sidebar lost focus

        [[NSNotificationCenter defaultCenter] addObserver:drawerView selector:@selector(triggerChanged:) name:NSViewFrameDidChangeNotification object:nil];

I can't seem to get that to work

Or add notifications to the text fields to 'writeTriggers' when text is entered using

 - (void) textDidChange: (NSNotification *) notification

I don't know enough about these to implement it.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions