Skip to content

Commit

Permalink
re-feat: rename ethylene-amd to amdhelper
Browse files Browse the repository at this point in the history
  • Loading branch information
alvindimas05 committed Oct 7, 2024
1 parent a1f7e1a commit e5e6cd2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions amdhelper-tui/src/main.rs
Original file line number Diff line number Diff line change
@@ -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},
Expand Down Expand Up @@ -30,7 +30,7 @@ struct App {
}

struct AppList {
items: Vec<EthyleneApp>,
items: Vec<AMDHelperApp>,
selected_items: Vec<usize>,
state: ListState,
}
Expand Down Expand Up @@ -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::<Vec<&EthyleneApp>>()
fn get_selected_apps(&mut self) -> Vec<&AMDHelperApp> {
self.app_list.selected_items.iter().map(|i| self.app_list.items.get(*i).unwrap()).collect::<Vec<&AMDHelperApp>>()
}

fn exit(&mut self) {
Expand Down Expand Up @@ -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![
" <A> ".red(),
"Apply".into(),
Expand Down

0 comments on commit e5e6cd2

Please sign in to comment.