Skip to content

Commit

Permalink
Frontend blank screen fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
vrn21 committed Jan 7, 2024
1 parent 8d23f05 commit cb16ea5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
22 changes: 11 additions & 11 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,19 @@ fn main() -> Result<(), slint::PlatformError> {
ui.compile_code_rs(move |string,string,string| {
let ui = ui_handle.unwrap();

let URL = "https://play.rust-lang.org/execute";
let mut data : HashMap<&str,&str> = HashMap::new();
data.insert("channel", "stable");
data.insert("mode", "debug");
data.insert("edition", "2024");
data.insert("crateType", "bin");
data.insert("tests", false);
data.insert("code", ui.get_code());
data.insert("backtrace", false);
// let URL = "https://play.rust-lang.org/execute";
// let mut data : HashMap<&str,&str> = HashMap::new();
// data.insert("channel", "stable");
// data.insert("mode", "debug");
// data.insert("edition", "2024");
// data.insert("crateType", "bin");
// data.insert("tests", false);
// data.insert("code", ui.get_code());
// data.insert("backtrace", false);

//compile code here and change the property likewise
ui.set_stderr();
ui.set_stdout();
// ui.set_stderr();
// ui.set_stdout();

});

Expand Down
1 change: 0 additions & 1 deletion ui/appwindow.slint
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,3 @@ export component Example inherits Window {

}
}

0 comments on commit cb16ea5

Please sign in to comment.