Add licensing, readme, todo file

Fix the cursor showing as the 'edit text' type when hovering over a
playlist in the side nav bar
This commit is contained in:
2024-10-10 02:13:49 +03:00
parent 70b92f4ebf
commit 31a710c6cb
9 changed files with 833 additions and 5514 deletions

View File

@@ -3,8 +3,6 @@
use config::ConfigWrapper;
// TODO: Possibly use https://docs.rs/ytextract/latest/ytextract/ instead of ytdlp
mod manifest;
mod logger;
mod downloader;
@@ -16,6 +14,8 @@ mod ui;
mod prompt;
mod data;
#[tokio::main]
async fn main() {
let Ok(cfg) = ConfigWrapper::parse() else {

View File

@@ -32,7 +32,8 @@ impl ComponentUi for SideNav {
} else {
text = RichText::new(&pname);
}
let button = Label::new(text).sense(Sense::click());
let button = Label::new(text).sense(Sense::click()).selectable(false);
if ui.add(button).clicked() {
gui.current_playlist = pname.to_string();
}