Skip to content

Commit

Permalink
Test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoburns committed Jun 19, 2024
1 parent 43cbe6b commit 1452b1a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.79
- run: sudo apt install libgtk-3-dev
- run: sudo apt install libgtk-3-dev libxdo-dev
- run: cargo build --workspace

test-features-default:
Expand All @@ -35,7 +35,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: sudo apt install libgtk-3-dev
- run: sudo apt install libgtk-3-dev libxdo-dev
- run: cargo build --workspace
- run: cargo test --workspace

Expand All @@ -59,7 +59,7 @@ jobs:
with:
toolchain: nightly
components: clippy
- run: sudo apt install libgtk-3-dev
- run: sudo apt install libgtk-3-dev libxdo-dev
- run: cargo clippy --workspace -- -D warnings

doc:
Expand Down
8 changes: 5 additions & 3 deletions packages/dioxus-blitz/src/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,9 @@ impl<'a, Doc: DocumentLike> View<'a, Doc> {
}
#[cfg(target_os = "linux")]
{
build_menu().init_for_gtk_window(window.gtk_window(), window.default_vbox());
build_menu()
.init_for_gtk_window(window.gtk_window(), window.default_vbox())
.unwrap();
}

// !TODO - this may not be the right way to do this, but it's a start
Expand Down Expand Up @@ -331,10 +333,10 @@ impl<'a, Doc: DocumentLike> View<'a, Doc> {

#[cfg(not(target_os = "macos"))]
fn build_menu() -> Menu {
let mut menu = Menu::new();
let menu = Menu::new();

// Build the about section
let mut about = Submenu::new("About", true);
let about = Submenu::new("About", true);

about
.append_items(&[
Expand Down

0 comments on commit 1452b1a

Please sign in to comment.