From ac2f3bcddf98271915a0f68d1537922205b7178b Mon Sep 17 00:00:00 2001 From: Ivan Yarcev Date: Thu, 11 Apr 2024 10:53:20 +0600 Subject: [PATCH] fixed wrong status when upgrading launched application to root --- .gitignore | 3 ++- Makefile | 5 +++++ source/ubl-settings-manager.c | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 866564b..6356553 100644 --- a/.gitignore +++ b/.gitignore @@ -18,4 +18,5 @@ ui/ ubl-settings-manager_ru.pos ubl-settings-manager_ru.po~ deleted -compile/ \ No newline at end of file +compile/ +.install.sh \ No newline at end of file diff --git a/Makefile b/Makefile index abd1da4..a990f29 100644 --- a/Makefile +++ b/Makefile @@ -24,6 +24,11 @@ init: @echo "Initialize ..."; \ if [ -d ".git" ]; then \ LATEST_TAG=$$(git describe --abbrev=0 --tags | sed 's/^v//'); \ + if [ -z "$${LATEST_TAG}" ]; \ + then \ + LATEST_TAG=$$"0.0"; \ + echo "$${LATEST_TAG} is empty"; \ + fi; \ else \ LATEST_TAG="Development"; \ fi; \ diff --git a/source/ubl-settings-manager.c b/source/ubl-settings-manager.c index 65aaf82..6f066e0 100644 --- a/source/ubl-settings-manager.c +++ b/source/ubl-settings-manager.c @@ -60,6 +60,7 @@ void on_plug_removed(GtkSocket* self, actionWidgets *widgets){ gtk_widget_destroy(widgets->socketbutton); if(widgets->ThirdSocket) gtk_widget_destroy(widgets->ThirdSocket); + on_backToSettingsButton_clicked(widgets->ButtonBackToMain,widgets); } void on_Item_activated(GtkIconView* self, GtkTreePath* path, actionWidgets *applist){ -- 2.35.1