Skip to content

Commit

Permalink
great
Browse files Browse the repository at this point in the history
  • Loading branch information
RealRTTV committed Mar 24, 2024
1 parent d5b33e8 commit cb7a9e6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/element_action.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ impl ElementAction {
'a: {
#[cfg(target_os = "windows")]
break 'a Command::new("cmd").args(["/c", "start", str]).status();
#[cfg(target_os = "apple")]
#[cfg(target_os = "macos")]
break 'a Command::new("open").arg(str).status();
#[cfg(target_os = "linux")]
break 'a Command::new("xdg-open").arg(str).status();
Expand Down
2 changes: 1 addition & 1 deletion src/tab.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ impl Tab {
})
}

#[cfg(any(target_os = "windows", target_os = "apple", target_os = "linux"))]
#[cfg(any(target_os = "windows", target_os = "macos", target_os = "linux"))]
pub fn save(&mut self, force_dialog: bool) -> Result<()> {
let path = self.path.as_deref().unwrap_or(self.name.as_ref().as_ref());
if !path.exists() || force_dialog {
Expand Down
2 changes: 1 addition & 1 deletion src/workbench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1157,7 +1157,7 @@ impl Workbench {
}

#[inline]
#[cfg(any(target_os = "windows", target_os = "apple", target_os = "linux"))]
#[cfg(any(target_os = "windows", target_os = "macos", target_os = "linux"))]
fn open_file(&mut self, window_properties: &mut WindowProperties) {
match native_dialog::FileDialog::new().set_location("~/Downloads").add_filter("NBT File", &["nbt", "snbt", "dat", "dat_old", "dat_mcr", "old"]).add_filter("Region File", &["mca", "mcr"]).show_open_single_file() {
Err(e) => self.alert(Alert::new("Error!", TextColor::Red, e.to_string())),
Expand Down

0 comments on commit cb7a9e6

Please sign in to comment.