From e5e6cd2ef0c5062965689fdcf0c2d10ae7beaa10 Mon Sep 17 00:00:00 2001 From: Alvin Dimas Praditya Date: Mon, 7 Oct 2024 10:23:12 +0700 Subject: [PATCH] re-feat: rename ethylene-amd to amdhelper --- amdhelper-tui/src/main.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/amdhelper-tui/src/main.rs b/amdhelper-tui/src/main.rs index af66f62..3e61cb6 100644 --- a/amdhelper-tui/src/main.rs +++ b/amdhelper-tui/src/main.rs @@ -1,7 +1,7 @@ #![warn(clippy::nursery, unused_extern_crates)] use crossterm::event::{Event, KeyCode, KeyEvent, KeyEventKind}; -use ethylene_amd::{apply_chromium_patch, get_apps, get_patches, patch::{chromium::ChromiumPatch, EthylenePatch}, EthyleneApp}; +use amdhelper::{apply_chromium_patch, get_apps, get_patches, patch::{chromium::ChromiumPatch, AMDHelperPatch}, AMDHelperApp}; use ratatui::{ buffer::Buffer, layout::{Alignment, Rect}, @@ -30,7 +30,7 @@ struct App { } struct AppList { - items: Vec, + items: Vec, selected_items: Vec, state: ListState, } @@ -84,8 +84,8 @@ impl App { self.app_list.selected_items = vec![]; } - fn get_selected_apps(&mut self) -> Vec<&EthyleneApp> { - self.app_list.selected_items.iter().map(|i| self.app_list.items.get(*i).unwrap()).collect::>() + fn get_selected_apps(&mut self) -> Vec<&AMDHelperApp> { + self.app_list.selected_items.iter().map(|i| self.app_list.items.get(*i).unwrap()).collect::>() } fn exit(&mut self) { @@ -118,7 +118,7 @@ impl App { impl Widget for &mut App { fn render(self, area: Rect, buf: &mut Buffer) { - let title = Title::from(" EthyleneAMD ".bold()).alignment(Alignment::Center); + let title = Title::from(" AMDHelper ".bold()).alignment(Alignment::Center); let instructions = Title::from(Line::from(vec![ " ".red(), "Apply".into(),