mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps] Reset (exam mode) delete all records at once
This commit is contained in:
@@ -95,8 +95,8 @@ App::Snapshot * AppsContainer::usbConnectedAppSnapshot() {
|
||||
}
|
||||
|
||||
void AppsContainer::reset() {
|
||||
// Empty stored variable
|
||||
Ion::Storage::sharedStorage()->destroyRecordsWithExtension("exp");
|
||||
// Empty storage (delete functions, variables, python scripts)
|
||||
Ion::Storage::sharedStorage()->destroyAllRecords();
|
||||
// Empty clipboard
|
||||
Clipboard::sharedClipboard()->reset();
|
||||
for (int i = 0; i < numberOfApps(); i++) {
|
||||
|
||||
@@ -30,10 +30,6 @@ App * App::Snapshot::unpack(Container * container) {
|
||||
return new (container->currentAppBuffer()) App(container, this);
|
||||
}
|
||||
|
||||
void App::Snapshot::reset() {
|
||||
m_scriptStore.deleteAllScripts();
|
||||
}
|
||||
|
||||
App::Descriptor * App::Snapshot::descriptor() {
|
||||
static Descriptor descriptor;
|
||||
return &descriptor;
|
||||
|
||||
@@ -24,7 +24,6 @@ public:
|
||||
public:
|
||||
Snapshot();
|
||||
App * unpack(Container * container) override;
|
||||
void reset() override;
|
||||
Descriptor * descriptor() override;
|
||||
ScriptStore * scriptStore();
|
||||
#if EPSILON_GETOPT
|
||||
|
||||
@@ -33,7 +33,6 @@ App * App::Snapshot::unpack(Container * container) {
|
||||
|
||||
void App::Snapshot::reset() {
|
||||
StorageFunctionApp::Snapshot::reset();
|
||||
m_functionStore.removeAll();
|
||||
m_graphRange.setDefault();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user