{"comment":{"url":"https://api.github.com/repos/rmzelle/zotero/comments/9747725","html_url":"https://github.com/rmzelle/zotero/commit/369809a091d4e9c5e427ed465c16adaf336b9013#commitcomment-9747725","id":9747725,"user":{"login":"dstillman","id":783082,"avatar_url":"https://avatars.githubusercontent.com/u/783082?v=3","gravatar_id":"","url":"https://api.github.com/users/dstillman","html_url":"https://github.com/dstillman","followers_url":"https://api.github.com/users/dstillman/followers","following_url":"https://api.github.com/users/dstillman/following{/other_user}","gists_url":"https://api.github.com/users/dstillman/gists{/gist_id}","starred_url":"https://api.github.com/users/dstillman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dstillman/subscriptions","organizations_url":"https://api.github.com/users/dstillman/orgs","repos_url":"https://api.github.com/users/dstillman/repos","events_url":"https://api.github.com/users/dstillman/events{/privacy}","received_events_url":"https://api.github.com/users/dstillman/received_events","type":"User","site_admin":false},"position":54,"line":269,"path":"chrome/content/zotero/preferences/preferences_export.js","commit_id":"369809a091d4e9c5e427ed465c16adaf336b9013","created_at":"2015-02-14T05:50:56Z","updated_at":"2015-02-14T05:50:56Z","body":"Yeah, we don't want it to be set automatically. For doing it manually, though, there's actually a difference between platforms in when prefs are applied. OS X is instant-apply by default, but other OSes aren't. So you could check the global pref browser.preferences.instantApply, which we do in a few other places in the prefs, and set it at the appropriate time, but it's easier to let the prefwindow deal with it automatically. Just thinking off the top of my head, you might be able to just set a flag oncommand and check that from an [onsynctopreference](https://developer.mozilla.org/en-US/docs/Mozilla/Preferences/Preferences_system/New_attributes#onsyncfrompreference.2Fonsynctopreference) handler, which would only return something other than an empty string if the pref was already set or the changed flag was set. Might be a more elegant way."}}