mirror of
https://github.com/starship/starship.git
synced 2026-06-23 02:05:51 +07:00
feat: Enable Undistract Me for Linux (#3547)
In #1019 the undistract feature has been added to starship without enabling it by default due to the system dependency on libdbus. With recent versions of notify-rust the dependency is no longer required and the feature can be enabled by default.
This commit is contained in:
@@ -51,20 +51,6 @@ pub fn module<'a>(context: &'a Context) -> Option<Module<'a>> {
|
||||
Some(undistract_me(module, &config, elapsed))
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "notify-rust"))]
|
||||
fn undistract_me<'a, 'b>(
|
||||
module: Module<'a>,
|
||||
config: &'b CmdDurationConfig,
|
||||
_elapsed: u128,
|
||||
) -> Module<'a> {
|
||||
if config.show_notifications {
|
||||
log::debug!("This version of starship was built without notification support.");
|
||||
}
|
||||
|
||||
module
|
||||
}
|
||||
|
||||
#[cfg(feature = "notify-rust")]
|
||||
fn undistract_me<'a, 'b>(
|
||||
module: Module<'a>,
|
||||
config: &'b CmdDurationConfig,
|
||||
|
||||
Reference in New Issue
Block a user