Skip to content

Commit

Permalink
Missed adding it to Mnemo.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Nov 14, 2013
1 parent c13f29d commit 8946356
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions mnemo/config/prefs.php
Expand Up @@ -26,7 +26,7 @@
'column' => _("Notepad and Share Preferences"),
'label' => _("Synchronization Preferences"),
'desc' => _("Choose the Notepads to use for synchronization with external devices."),
'members' => array('sync_notepads'),
'members' => array('sync_notepads', 'activesync_no_multiplex'),
);

$prefGroups['deletion'] = array(
Expand Down Expand Up @@ -121,7 +121,7 @@
$sync[] = $default;
$GLOBALS['prefs']->setValue('sync_notepads', serialize($sync));
}
if ($GLOBALS['conf']['activesync']['enabled']) {
if ($GLOBALS['conf']['activesync']['enabled'] && !$GLOBALS['prefs']->getValue('activesync_no_multiplex')) {
try {
$sm = $GLOBALS['injector']->getInstance('Horde_ActiveSyncState');
$sm->setLogger($GLOBALS['injector']->getInstance('Horde_Log_Logger'));
Expand All @@ -141,6 +141,14 @@
}
);

// @todo We default to using multiplex since that is the current behavior
// For Mnemo 5 we should default to separate.
$_prefs['activesync_no_multiplex'] = array(
'type' => 'checkbox',
'desc' => _("Support separate collections?"),
'value' => 0
);

// store the notepads to diplay
$_prefs['display_notepads'] = array(
'value' => 'a:0:{}'
Expand Down

0 comments on commit 8946356

Please sign in to comment.