|
@@ -33,6 +33,11 @@ static uint32_t key_copier_navigation_submenu_callback(void* _context) {
|
|
|
return KeyCopierViewSubmenu;
|
|
return KeyCopierViewSubmenu;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+static uint32_t key_copier_navigation_manufacturer_list_callback(void* _context) {
|
|
|
|
|
+ UNUSED(_context);
|
|
|
|
|
+ return KeyCopierViewManufacturerList;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
static void key_copier_submenu_callback(void* context, uint32_t index) {
|
|
static void key_copier_submenu_callback(void* context, uint32_t index) {
|
|
|
KeyCopierApp* app = (KeyCopierApp*)context;
|
|
KeyCopierApp* app = (KeyCopierApp*)context;
|
|
|
switch(index) {
|
|
switch(index) {
|
|
@@ -637,7 +642,7 @@ static KeyCopierApp* key_copier_app_alloc() {
|
|
|
app->dialogs = furi_record_open(RECORD_DIALOGS);
|
|
app->dialogs = furi_record_open(RECORD_DIALOGS);
|
|
|
app->file_path = furi_string_alloc();
|
|
app->file_path = furi_string_alloc();
|
|
|
app->submenu = submenu_alloc();
|
|
app->submenu = submenu_alloc();
|
|
|
- submenu_set_header(app->submenu, "Key Copier v1.2");
|
|
|
|
|
|
|
+ submenu_set_header(app->submenu, "Key Copier v1.3");
|
|
|
submenu_add_item(
|
|
submenu_add_item(
|
|
|
app->submenu,
|
|
app->submenu,
|
|
|
"Select Key Format",
|
|
"Select Key Format",
|
|
@@ -711,7 +716,7 @@ static KeyCopierApp* key_copier_app_alloc() {
|
|
|
0,
|
|
0,
|
|
|
128,
|
|
128,
|
|
|
64,
|
|
64,
|
|
|
- "Key Maker App 1.2\nAuthor: @Torron\n\nTo measure your key:\n\n1. Place "
|
|
|
|
|
|
|
+ "Key Maker App 1.3\nAuthor: @Torron\n\nTo measure your key:\n\n1. Place "
|
|
|
"it on top of the screen.\n\n2. Use the contour to align your key.\n\n3. "
|
|
"it on top of the screen.\n\n2. Use the contour to align your key.\n\n3. "
|
|
|
"Adjust each pin's depth until they match. It's easier if you look with "
|
|
"Adjust each pin's depth until they match. It's easier if you look with "
|
|
|
"one eye closed.\n\nGithub: github.com/zinongli/KeyCopier \n\nSpecial "
|
|
"one eye closed.\n\nGithub: github.com/zinongli/KeyCopier \n\nSpecial "
|
|
@@ -750,7 +755,7 @@ static KeyCopierApp* key_copier_app_alloc() {
|
|
|
|
|
|
|
|
app->format_list = submenu_alloc();
|
|
app->format_list = submenu_alloc();
|
|
|
view_set_previous_callback(
|
|
view_set_previous_callback(
|
|
|
- submenu_get_view(app->format_list), key_copier_navigation_submenu_callback);
|
|
|
|
|
|
|
+ submenu_get_view(app->format_list), key_copier_navigation_manufacturer_list_callback);
|
|
|
view_dispatcher_add_view(
|
|
view_dispatcher_add_view(
|
|
|
app->view_dispatcher, KeyCopierViewFormatList, submenu_get_view(app->format_list));
|
|
app->view_dispatcher, KeyCopierViewFormatList, submenu_get_view(app->format_list));
|
|
|
|
|
|