Compare commits
No commits in common. "d0a084c60c6858c69a02b636bfa316058ada2d5e" and "578cc7723cbb5cbc05d5b92a617140b1162c4456" have entirely different histories.
d0a084c60c
...
578cc7723c
1 changed files with 2 additions and 9 deletions
11
src/main.rs
11
src/main.rs
|
@ -6,7 +6,7 @@ use std::{
|
|||
path::Path,
|
||||
};
|
||||
|
||||
use eframe::egui::{self, Key, TextEdit, ViewportBuilder};
|
||||
use eframe::egui::{self, Key, TextEdit};
|
||||
|
||||
enum RunError {
|
||||
HomeDir(homedir::GetHomeError),
|
||||
|
@ -45,10 +45,7 @@ fn main() -> Result<(), RunError> {
|
|||
.open(Path::join(&home_dir, "todo.txt"))
|
||||
.map_err(RunError::OpenFile)?;
|
||||
|
||||
let native_options = eframe::NativeOptions {
|
||||
viewport: ViewportBuilder::default().with_app_id("todoodoo"),
|
||||
..Default::default()
|
||||
};
|
||||
let native_options = eframe::NativeOptions::default();
|
||||
eframe::run_native(
|
||||
"To-DooDoo",
|
||||
native_options,
|
||||
|
@ -96,8 +93,4 @@ impl eframe::App for ToDooDooApp {
|
|||
ui.add_sized(ui.available_size(), TextEdit::multiline(&mut self.notes));
|
||||
});
|
||||
}
|
||||
|
||||
fn save(&mut self, _storage: &mut dyn eframe::Storage) {
|
||||
self.save();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue