hidefuku / AnimeEffects

2D Animation Tool
GNU General Public License v3.0
755 stars 99 forks source link

Some settings are saved to the registry on Windows #9

Open Nanashia opened 7 years ago

Nanashia commented 7 years ago

Hi, I noticed that a location of settings are not unified in Windows 10. Key bindings are saved to %APPDATA%\AnimeEffectsProject\AnimeEffects.ini, while other settings such as languages and a window position are saved to the system registry where key is HKEY_CURRENT_USER\SOFTWARE\AnimeEffectsProject\AnimeEffects. The app should not write anything to the registry unless it is distributed in a installer package.

this difference comes from usage of QSettings class.

        QSettings settings;

and

    QSettings settings(QSettings::IniFormat, QSettings::UserScope,
                       QApplication::organizationName(),
                       QApplication::applicationName());

I confirmed this issue at v1.3 release and git master on my Windows 10 Home (version 1607).