Commit 05eb29b7 authored by Martin Nordholts's avatar Martin Nordholts

app: Don't blindly increment last-tip-shown

Don't blindly increment last-tip-shown so that the sessionrc is not
modified between each GIMP run. The change is to make it easier to
write regression tests for sessionrc. Eventually we might want some
proper fix.
parent 1923280e
......@@ -272,10 +272,14 @@ session_save (Gimp *gimp,
gimp_dialog_factories_session_save (writer);
gimp_config_writer_linefeed (writer);
/* save last tip shown */
/* save last tip shown
*
* FIXME: Make last-tip-shown increment only when used within the
* session
*/
gimp_config_writer_open (writer, "last-tip-shown");
gimp_config_writer_printf (writer, "%d",
GIMP_GUI_CONFIG (gimp->config)->last_tip + 1);
GIMP_GUI_CONFIG (gimp->config)->last_tip);
gimp_config_writer_close (writer);
if (! gimp_config_writer_finish (writer, "end of sessionrc", &error))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment