[chronojump] After a import/cancel, persons at not shown, shown menu
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] After a import/cancel, persons at not shown, shown menu
- Date: Mon, 6 Apr 2020 09:05:16 +0000 (UTC)
commit 018f078be4ac1ca37d39da3ba0ad0b68f6a9fbb0
Author: Xavier de Blas <xaviblas gmail com>
Date: Mon Apr 6 11:03:48 2020 +0200
After a import/cancel, persons at not shown, shown menu
src/gui/app1/menu.cs | 8 ++++----
src/gui/app1/sessionLoadAndImport.cs | 4 ++++
2 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/src/gui/app1/menu.cs b/src/gui/app1/menu.cs
index 11b9dd18..eafaa126 100644
--- a/src/gui/app1/menu.cs
+++ b/src/gui/app1/menu.cs
@@ -236,11 +236,11 @@ public partial class ChronoJumpWindow
private void on_radio_show_menu_toggled (object o, EventArgs args)
{
- if(check_menu_help.Active)
- check_menu_help.Active = false;
+ if(check_menu_help.Active)
+ check_menu_help.Active = false;
- viewport_menu.Visible = true;
- viewport_persons.Visible = false;
+ viewport_menu.Visible = true;
+ viewport_persons.Visible = false;
}
private void on_radio_show_persons_toggled (object o, EventArgs args)
{
diff --git a/src/gui/app1/sessionLoadAndImport.cs b/src/gui/app1/sessionLoadAndImport.cs
index e73579c9..25fcf87b 100644
--- a/src/gui/app1/sessionLoadAndImport.cs
+++ b/src/gui/app1/sessionLoadAndImport.cs
@@ -571,7 +571,11 @@ public partial class ChronoJumpWindow
void app1s_on_button_cancel1_clicked (object o, EventArgs args)
{
app1s_notebook.CurrentPage = app1s_PAGE_MODES;
+
reloadSession(); //explained at top of the file.
+ //but now show persons, show menu:
+ radio_show_menu.Toggle();
+ radio_show_menu.Active = true;
}
protected void app1s_on_button_select_file_import_clicked(object o, EventArgs args) {
app1s_chooseDatabaseToImport ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]