[settings] add an option to sync msoffice/libreoffice tmp file

__PLEASE NOT MERGE THIS__

* add an option to sync msoffice/libreoffice tmp file
* adjust some odd-styled code
有的选项只有 applet 用到， 有的选项 seafile-client 和 seaf-daemon 都需要用到。

比如 "启动时隐藏主窗口”  只在 applet 中访问， 这一类的选项当然用 QSettings 存放最好。

而现在这个选项则是 applet  和 seaf-daemon 都要访问： applet 要访问它从而显示在设置界面上， seaf-daemon
要访问它从而在索引时决定是否忽略文件），如果用 QSettings 的话 seaf-daemon 不好访问。因此这一类选项就存放在
seaf-daemon 的 config 里面，而不是用 QSettings。




On Tue, Sep 16, 2014 at 8:04 PM, Chilledheart <notifications@github.com>
wrote:

> In src/settings-mgr.cpp:
>
> > -    settings.setValue(kHideDockIcon, hideDockIcon);
> > +    settings.setValue(kHideDockIcon, hide);
> > +    settings.endGroup();
> > +
> > +    set_seafile_dock_icon_style(hide);
> > +}
> > +
> > +bool SettingsManager::syncExtraTempFile()
> > +{
> > +    QSettings settings;
> > +    bool sync;
> > +
> > +    settings.beginGroup(kSettingsGroup);
> > +    sync = settings.value(kSyncExtraTempFile, false).toBool();
> > +    settings.endGroup();
> > +    return sync;
>
> This will leaves users to be confused if there are two parts of settings
> where one denies the other (sometimes or often?).
>
> Okay, I will wait until you have made a unambiguous decision for this.
> Once this is made, the implementation should be there in minutes.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/haiwen/seafile-client/pull/212/files#r17596727>.
>