Skip to content

Commit

Permalink
Move icon logic to new thread
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlieS1103 committed Oct 31, 2024
1 parent 21a66d4 commit c88f27d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
6 changes: 4 additions & 2 deletions src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,17 @@ mod app_structs;
mod config;
mod parser;
mod utils;
use std::{path::{PathBuf, Path}, error::Error, fs::{self, File, read_dir}, io::{BufReader, Read, BufWriter, Cursor},};
use app_structs::{mac_app::MacApplication, icon_states::generate_toml_file, icon_states::parse_toml_file,};
use std::{error::Error, fs::{self, read_dir, File}, io::{BufReader, BufWriter, Cursor, Read}, path::{Path, PathBuf}, thread};
use app_structs::{mac_app::MacApplication, icon_states::generate_toml_file};
use config::{parse_config, generate_config};
use plist::Value;
use utils::image_handling::icns_conversion::{convert_icns_to_png, /*convert_pngs_to_icns*/};


fn main() {
thread::spawn(|| {
mac_logic();
});
tauri::Builder::default()
.run(tauri::generate_context!())
.expect("error while running tauri application");
Expand Down
9 changes: 6 additions & 3 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
import './assets/main.css';
import Index from './pages';


export default function App() {
return (
<div>
<Index />
<div className="App">
<header className="App-header">
<h1>Overgrowth</h1>
</header>
</div>

)
}

Expand Down

0 comments on commit c88f27d

Please sign in to comment.