mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
Fix setting timeshift dif from menu
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1578 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -34,13 +34,12 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#include "gui/record_setup.h"
|
|
||||||
|
|
||||||
#include <global.h>
|
#include <global.h>
|
||||||
#include <neutrino.h>
|
#include <neutrino.h>
|
||||||
|
|
||||||
#include <mymenu.h>
|
#include <mymenu.h>
|
||||||
|
|
||||||
|
#include "gui/record_setup.h"
|
||||||
#include "gui/filebrowser.h"
|
#include "gui/filebrowser.h"
|
||||||
|
|
||||||
#include <gui/widget/icons.h>
|
#include <gui/widget/icons.h>
|
||||||
@@ -49,6 +48,7 @@
|
|||||||
#include <gui/widget/stringinput_ext.h>
|
#include <gui/widget/stringinput_ext.h>
|
||||||
|
|
||||||
#include <driver/screen_max.h>
|
#include <driver/screen_max.h>
|
||||||
|
#include <driver/record.h>
|
||||||
|
|
||||||
#include <system/debug.h>
|
#include <system/debug.h>
|
||||||
|
|
||||||
@@ -97,6 +97,7 @@ int CRecordSetup::exec(CMenuTarget* parent, const std::string &actionKey)
|
|||||||
safe_mkdir(timeshiftDir);
|
safe_mkdir(timeshiftDir);
|
||||||
printf("New timeshift dir: %s\n", timeshiftDir);
|
printf("New timeshift dir: %s\n", timeshiftDir);
|
||||||
}
|
}
|
||||||
|
CRecordManager::getInstance()->SetTimeshiftDirectory(timeshiftDir);
|
||||||
}
|
}
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
@@ -128,6 +129,7 @@ int CRecordSetup::exec(CMenuTarget* parent, const std::string &actionKey)
|
|||||||
printf("New timeshift == rec dir\n");
|
printf("New timeshift == rec dir\n");
|
||||||
}
|
}
|
||||||
printf("New timeshift dir: %s\n", timeshiftDir);
|
printf("New timeshift dir: %s\n", timeshiftDir);
|
||||||
|
CRecordManager::getInstance()->SetTimeshiftDirectory(timeshiftDir);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return res;
|
return res;
|
||||||
|
Reference in New Issue
Block a user