mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 17:31:11 +02:00
keybind-setup: use g_settings.backup_dir to save/load keys
Origin commit data
------------------
Branch: ni/coolstream
Commit: 6aca3dcbfb
Author: vanhofen <vanhofen@gmx.de>
Date: 2019-03-24 (Sun, 24 Mar 2019)
Origin message was:
------------------
- keybind-setup: use g_settings.backup_dir to save/load keys
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -97,7 +97,7 @@ int CKeybindSetup::exec(CMenuTarget* parent, const std::string &actionKey)
|
||||
CFileFilter fileFilter;
|
||||
fileFilter.addFilter("conf");
|
||||
fileBrowser.Filter = &fileFilter;
|
||||
if (fileBrowser.exec(CONFIGDIR) == true) {
|
||||
if (fileBrowser.exec(g_settings.backup_dir.c_str()) == true) {
|
||||
CNeutrinoApp::getInstance()->loadKeys(fileBrowser.getSelectedFile()->Name.c_str());
|
||||
printf("[neutrino keybind_setup] new keys: %s\n", fileBrowser.getSelectedFile()->Name.c_str());
|
||||
for (int i = 0; i < KEYBINDS_COUNT; i++){
|
||||
@@ -109,7 +109,7 @@ int CKeybindSetup::exec(CMenuTarget* parent, const std::string &actionKey)
|
||||
else if(actionKey == "savekeys") {
|
||||
CFileBrowser fileBrowser;
|
||||
fileBrowser.Dir_Mode = true;
|
||||
if (fileBrowser.exec(CONFIGDIR) == true) {
|
||||
if (fileBrowser.exec(g_settings.backup_dir.c_str()) == true) {
|
||||
std::string fname = "keys.conf";
|
||||
CKeyboardInput * sms = new CKeyboardInput(LOCALE_EXTRA_SAVEKEYS, &fname);
|
||||
sms->exec(NULL, "");
|
||||
|
Reference in New Issue
Block a user