Remove unnecessary code forcing keyboardShortcuts to appear in config
The settings API automatically makes settings appear on startup.
This commit is contained in:
@@ -278,27 +278,6 @@ OverlayController::OverlayController( bool desktopMode,
|
|||||||
return obj;
|
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
|
// Keep the settings for vsyncDisabled and crash recovery here in main
|
||||||
// overlaycontroller
|
// overlaycontroller
|
||||||
appSettings()->beginGroup( "applicationSettings" );
|
appSettings()->beginGroup( "applicationSettings" );
|
||||||
|
|||||||
Reference in New Issue
Block a user