Skip to content

Commit

Permalink
Merge pull request #331 from nokyan/v1.6.0
Browse files Browse the repository at this point in the history
Release 1.6.0
  • Loading branch information
nokyan authored Aug 23, 2024
2 parents c4508cd + 67b3cc7 commit f254bcf
Show file tree
Hide file tree
Showing 6 changed files with 56 additions and 37 deletions.
40 changes: 20 additions & 20 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "resources"
version = "1.5.1"
version = "1.6.0"
authors = ["nokyan <[email protected]>"]
edition = "2021"

Expand All @@ -17,12 +17,12 @@ opt-level = 3
adw = { version = "0.7.0", features = ["v1_5"], package = "libadwaita" }
anyhow = { version = "1.0.86", features = ["backtrace"] }
async-channel = "2.3.1"
clap = { version = "4.5.11", features = ["derive"] }
clap = { version = "4.5.16", features = ["derive"] }
gettext-rs = { version = "0.7", features = ["gettext-system"] }
glob = "0.3.1"
gtk = { version = "0.9.0", features = ["v4_10"], package = "gtk4" }
gtk-macros = "0.3.0"
libc = { version = "0.2.155", features = ["extra_traits"] }
libc = { version = "0.2.158", features = ["extra_traits"] }
log = "0.4.22"
nix = { version = "0.29.0", default-features = false, features = [
"signal",
Expand All @@ -37,10 +37,10 @@ plotters = { version = "0.3.6", default-features = false, features = [
plotters-cairo = "0.7.0"
pretty_env_logger = "0.5"
process-data = { path = "lib/process_data" }
regex = "1.10.5"
regex = "1.10.6"
rmp-serde = "1.3.0"
ron = "0.8.1"
rust-ini = "0.21.0"
rust-ini = "0.21.1"
strum = "0.26.3"
strum_macros = "0.26.4"
sysconf = "0.3.4"
15 changes: 15 additions & 0 deletions data/net.nokyan.Resources.metainfo.xml.in.in
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,21 @@
</screenshot>
</screenshots>
<releases>
<release version="1.6.0" date="2024-08-23">
<url type="details">https://github.com/nokyan/resources/releases/tag/v1.6.0</url>
<description translate="no">
<p>
Resources 1.6 has landed and contains mainly internal changes and further preparations for GNOME Circle. Here are some highlights:
</p>
<ul>
<li>Introduction of commandline arguments for Resources</li>
<li>New dialog for changing a process’ priority and processor affinity</li>
<li>Improved application detection</li>
<li>Reduced memory usage over time</li>
<li>Added context menus in the Apps and Processes views</li>
</ul>
</description>
</release>
<release version="1.5.1" date="2024-07-07">
<description translate="no">
<p>
Expand Down
15 changes: 8 additions & 7 deletions lib/process_data/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,28 +1,29 @@
[package]
name = "process-data"
version = "1.5.1"
version = "1.6.0"
authors = ["nokyan <[email protected]>"]
edition = "2021"

[profile.dev]
opt-level = 1

[profile.release]
opt-level = 3
strip = true
codegen-units = 1
lto = true
strip = true
opt-level = 3

[dependencies]
anyhow = "1.0.86"
glob = "0.3.1"
libc = "0.2.155"
libc = "0.2.158"
num_cpus = "1.16.0"
nutype = { version = "0.4.3", features = ["serde"] }
nvml-wrapper = "0.10.0"
once_cell = "1.19.0"
regex = "1.10.5"
serde = { version = "1.0.204", features = ["serde_derive"] }
regex = "1.10.6"
serde = { version = "1.0.208", features = ["serde_derive"] }
syscalls = { version = "0.6.18", features = ["all"] }
sysconf = "0.3.4"
unescape = "0.1.0"
uzers = "0.12.0"
uzers = "0.12.1"
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
project(
'resources',
'rust',
version: '1.5.1',
version: '1.6.0',
meson_version: '>= 0.59',
)

Expand Down
11 changes: 7 additions & 4 deletions src/ui/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -661,13 +661,16 @@ impl MainWindow {
/// Wrapper to remove page, and check if removed page was visible with global default behavior
fn remove_page(&self, page: &ToolbarView) {
let imp = self.imp();
imp.content_stack.remove(page);

// no visible child exists
if imp.content_stack.is_child_visible() {
imp.resources_sidebar
.set_selected_list_item_by_tab_id(applications::TAB_ID);
if let Some(visible_child) = imp.content_stack.visible_child() {
if visible_child == *page.upcast_ref::<gtk::Widget>() {
imp.resources_sidebar
.set_selected_list_item_by_tab_id(applications::TAB_ID);
}
}

imp.content_stack.remove(page);
}

/// Create page for every drive that is shown
Expand Down

0 comments on commit f254bcf

Please sign in to comment.