Skip to content

Commit

Permalink
Remove impossible todo
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamesthe1 committed Jan 16, 2025
1 parent d8f67d4 commit 034f93d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main_window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ impl MyWindow {
button_style: BS::CENTER | BS::PUSHBUTTON,
..Default::default()
},
gui::ButtonOpts { // TODO: Tooltip that says "Clears out all modded files and deletes the game backup, meant for updates or broken installations"
gui::ButtonOpts { // Cannot create tooltip as there is no built-in one :(
text: "Reset Origin".to_string(),
position: (794, 638),
width: 200,
Expand Down Expand Up @@ -881,13 +881,14 @@ impl MyWindow {
});
}

fn set_window_ready (&self) {
fn set_window_ready(&self) {
let self_clone = self.clone();
self.wnd.on().wm_create(move |_| {
let appcfg = Self::get_appcfg();
let mods_view = self_clone.menus[0].mods_view.as_ref().unwrap();
Self::fill_main_view(mods_view, &appcfg);
self_clone.set_btn_icons(); // Button icons must be set after our window is initialized, because SendMessage relies on their HWND's being created (done in run_main).

Ok(0)
});

Expand Down

0 comments on commit 034f93d

Please sign in to comment.