mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-07-01 10:41:03 +02:00
Merge pull request #383 from JakeStanger/fix/await-sync
fix: some modules crashing due to recent gtk refactor
This commit is contained in:
commit
b6351003ab
1 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@ use glib::PropertySet;
|
||||||
use gtk::gdk::Display;
|
use gtk::gdk::Display;
|
||||||
use gtk::prelude::*;
|
use gtk::prelude::*;
|
||||||
use gtk::Application;
|
use gtk::Application;
|
||||||
use tokio::runtime::{Handle, Runtime};
|
use tokio::runtime::Runtime;
|
||||||
use tokio::task::{block_in_place, JoinHandle};
|
use tokio::task::{block_in_place, JoinHandle};
|
||||||
use tracing::{debug, error, info, warn};
|
use tracing::{debug, error, info, warn};
|
||||||
use universal_config::ConfigLoader;
|
use universal_config::ConfigLoader;
|
||||||
|
@ -370,5 +370,5 @@ where
|
||||||
///
|
///
|
||||||
/// TODO: remove all instances of this once async trait funcs are stable
|
/// TODO: remove all instances of this once async trait funcs are stable
|
||||||
pub fn await_sync<F: Future>(f: F) -> F::Output {
|
pub fn await_sync<F: Future>(f: F) -> F::Output {
|
||||||
block_in_place(|| Handle::current().block_on(f))
|
block_in_place(|| Ironbar::runtime().block_on(f))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue