Begone, uselessness!

This commit is contained in:
Willy-JL
2023-06-08 01:32:24 +01:00
parent 75147e89d7
commit cefad3dde6
2 changed files with 0 additions and 27 deletions
@@ -118,7 +118,6 @@ extern const uint8_t BAD_KB_EMPTY_MAC_ADDRESS[BAD_KB_MAC_ADDRESS_LEN];
typedef enum {
BadKbAppErrorNoFiles,
BadKbAppErrorCloseRpc,
} BadKbAppError;
typedef struct {
@@ -1,5 +1,4 @@
#include "../bad_kb_app.h"
#include <xtreme.h>
static void
bad_kb_scene_error_event_callback(GuiButtonType result, InputType type, void* context) {
@@ -26,31 +25,6 @@ void bad_kb_scene_error_on_enter(void* context) {
"No SD card or\napp data found.\nThis app will not\nwork without\nrequired files.");
widget_add_button_element(
app->widget, GuiButtonTypeLeft, "Back", bad_kb_scene_error_event_callback, app);
} else if(app->error == BadKbAppErrorCloseRpc) {
widget_add_icon_element(app->widget, 78, 0, &I_ActiveConnection_50x64);
if(XTREME_SETTINGS()->is_nsfw) {
widget_add_string_multiline_element(
app->widget, 3, 2, AlignLeft, AlignTop, FontPrimary, "I am not\na whore!");
widget_add_string_multiline_element(
app->widget,
3,
30,
AlignLeft,
AlignTop,
FontSecondary,
"Pull out from\nPC or phone to\nuse me like this.");
} else {
widget_add_string_multiline_element(
app->widget, 3, 2, AlignLeft, AlignTop, FontPrimary, "Connection\nis active!");
widget_add_string_multiline_element(
app->widget,
3,
30,
AlignLeft,
AlignTop,
FontSecondary,
"Disconnect from\nPC or phone to\nuse this function.");
}
}
view_dispatcher_switch_to_view(app->view_dispatcher, BadKbAppViewError);