Remove unnecessary code forcing keyboardShortcuts to appear in config

The settings API automatically makes settings appear on startup.
This commit is contained in:
Vasily
2019-12-10 08:28:41 +01:00
committed by username223
parent 4be96344da
commit f945bd06bd
-21
View File
@@ -278,27 +278,6 @@ OverlayController::OverlayController( bool desktopMode,
return obj;
} );
// Force keyboard shortcut settings to appear in config file.
constexpr auto settingsKeyboardName = "keyboardShortcuts";
appSettings()->beginGroup( settingsKeyboardName );
constexpr auto defaultDiscordMuteBindings = "^>m";
if ( appSettings()->value( "keyboardOne", "" ) == "" )
{
appSettings()->setValue( "keyboardOne", defaultDiscordMuteBindings );
}
if ( appSettings()->value( "keyboardTwo", "" ) == "" )
{
appSettings()->setValue( "keyboardTwo", defaultDiscordMuteBindings );
}
if ( appSettings()->value( "keyboardThree", "" ) == "" )
{
appSettings()->setValue( "keyboardThree", defaultDiscordMuteBindings );
}
appSettings()->endGroup();
// Keep the settings for vsyncDisabled and crash recovery here in main
// overlaycontroller
appSettings()->beginGroup( "applicationSettings" );