mirror of https://github.com/GNOME/gimp.git
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.
This commit is contained in:
parent
1923280e57
commit
05eb29b766
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue