From 205ba2b8372c438c4ed3a23a10ef486f1c72748a Mon Sep 17 00:00:00 2001 From: Sanel Zukan Date: Wed, 7 Oct 2009 09:04:47 +0000 Subject: [PATCH] Correctly check the box when ede-tip should be run and reverse --- ede-tip/ede-tip.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ede-tip/ede-tip.cpp b/ede-tip/ede-tip.cpp index f3bd7da..3f404a2 100644 --- a/ede-tip/ede-tip.cpp +++ b/ede-tip/ede-tip.cpp @@ -102,13 +102,13 @@ void write_autostart_stuff(void) { path += "/ede-tip.desktop"; DesktopFile conf; - bool show_at_startup = check_button->value(); + bool hidden = check_button->value(); if(!conf.load(path.c_str())) conf.create_new(DESK_FILE_TYPE_APPLICATION); // always write these values so someone does not try to play with us - conf.set_hidden(show_at_startup); + conf.set_hidden(!hidden); conf.set_name("EDE Tips"); conf.set_exec("ede-tip"); @@ -127,9 +127,9 @@ void read_autostart_stuff(void) { } if(conf.hidden()) - check_button->value(1); - else check_button->value(0); + else + check_button->value(1); } void close_cb(Fl_Widget*, void*) {