make sure commit isn't sensitive if there's nothing

This commit is contained in:
Ward from fusion-voyager-3 2024-09-07 11:44:57 +03:00
parent 72ee2bd2b5
commit 7adbcaa2d9
3 changed files with 20 additions and 1 deletions

View File

@ -17,5 +17,20 @@ install:
cp -vf data/*.gschema.xml $(DESTDIR)/usr/share/glib-2.0/schemas/ cp -vf data/*.gschema.xml $(DESTDIR)/usr/share/glib-2.0/schemas/
#cp -vf data/com.github.pikaos-linux.pikagnomelayouts.desktop $(DESTDIR)/usr/share/applications/ #cp -vf data/com.github.pikaos-linux.pikagnomelayouts.desktop $(DESTDIR)/usr/share/applications/
#cp -vfr data/polkit-1 $(DESTDIR)/usr/share/ #cp -vfr data/polkit-1 $(DESTDIR)/usr/share/
chmod 755 $(DESTDIR)/usr/bin/pika-pikman-update-manager chmod 755 $(DESTDIR)/usr/bin/pika/pikman-update-manager
chmod 755 $(DESTDIR)/usr/lib/pika/pikman-update-manager/scripts/*
install_no_build_debug:
mkdir -p $(DESTDIR)/usr/bin/
mkdir -p $(DESTDIR)/usr/lib/pika/pikman-update-manager/scripts/
mkdir -p $(DESTDIR)/usr/share/glib-2.0/schemas/
mkdir -p $(DESTDIR)/usr/share/applications
mkdir -p $(DESTDIR)/usr/share/icons/hicolor/scalable/apps
cp -vf target/debug/pikman-update-manager $(DESTDIR)/usr/bin/
cp -vf target/debug/apt_update $(DESTDIR)/usr/lib/pika/pikman-update-manager/scripts/
cp -vf target/debug/apt_full_upgrade $(DESTDIR)/usr/lib/pika/pikman-update-manager/scripts/
cp -vf data/*.gschema.xml $(DESTDIR)/usr/share/glib-2.0/schemas/
#cp -vf data/com.github.pikaos-linux.pikagnomelayouts.desktop $(DESTDIR)/usr/share/applications/
#cp -vfr data/polkit-1 $(DESTDIR)/usr/share/
chmod 755 $(DESTDIR)/usr/bin/pikman-update-manager
chmod 755 $(DESTDIR)/usr/lib/pika/pikman-update-manager/scripts/* chmod 755 $(DESTDIR)/usr/lib/pika/pikman-update-manager/scripts/*

View File

@ -209,6 +209,7 @@ pub fn apt_update_page(
.halign(Align::End) .halign(Align::End)
.valign(Align::Center) .valign(Align::Center)
.hexpand(false) .hexpand(false)
.sensitive(false)
.margin_start(10) .margin_start(10)
.margin_end(30) .margin_end(30)
.margin_bottom(15) .margin_bottom(15)
@ -355,6 +356,7 @@ pub fn apt_update_page(
async move { async move {
while let Ok(state) = get_upgradable_receiver.recv().await { while let Ok(state) = get_upgradable_receiver.recv().await {
viewport_bin.set_child(Some(&packages_viewport)); viewport_bin.set_child(Some(&packages_viewport));
update_button.set_sensitive(true);
let apt_row = AptPackageRow::new(state.clone()); let apt_row = AptPackageRow::new(state.clone());
apt_row.connect_closure( apt_row.connect_closure(
"checkbutton-toggled", "checkbutton-toggled",

View File

@ -275,6 +275,7 @@ pub fn flatpak_update_page(
let update_button = Button::builder() let update_button = Button::builder()
.halign(Align::End) .halign(Align::End)
.valign(Align::Center) .valign(Align::Center)
.sensitive(false)
.hexpand(false) .hexpand(false)
.margin_start(10) .margin_start(10)
.margin_end(30) .margin_end(30)
@ -376,6 +377,7 @@ pub fn flatpak_update_page(
let mut user_last_triggered = false; let mut user_last_triggered = false;
// //
if !flatpak_system_updates.is_empty() || !flatpak_user_updates.is_empty() { if !flatpak_system_updates.is_empty() || !flatpak_user_updates.is_empty() {
update_button.set_sensitive(true);
viewport_bin.set_child(Some(&packages_viewport)); viewport_bin.set_child(Some(&packages_viewport));
} }
// //