Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: avoid selectable labels for dynamic info #270

Merged
merged 1 commit into from
Feb 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lact-gui/src/app/info_row.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ mod imp {
name: RefCell<String>,
#[property(get, set)]
value: RefCell<String>,
#[property(get, set)]
selectable: RefCell<bool>,

#[template_child]
value_label: TemplateChild<Label>,
Expand Down
2 changes: 1 addition & 1 deletion lact-gui/ui/info_row.blp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ template $InfoRow: Box {
Label value_label {
label: bind template.value;
halign: end;
selectable: true;
selectable: bind template.selectable;
use-markup: true;
}
}
3 changes: 3 additions & 0 deletions lact-gui/ui/software_page.blp
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,18 @@ template $SoftwarePage: Box {
$InfoRow {
name: "LACT Daemon:";
value: bind template.daemon_version;
selectable: true;
}

$InfoRow {
name: "LACT GUI:";
value: bind template.gui_version;
selectable: true;
}

$InfoRow {
name: "Kernel Version:";
value: bind template.kernel_version;
selectable: true;
}
}
Loading