@@ -492,6 +492,8 @@ def __init__(self, argv):
492492 self .elapsed_time_run = 0
493493 self .progress = 0
494494
495+ self ._startup_message ()
496+
495497 # This allows sourcing an user defined file
496498 rcfile = "~/.gmoccapyrc"
497499 user_command_file = self .get_ini_info .get_user_command_file ()
@@ -528,7 +530,23 @@ def __init__(self, argv):
528530 self .notification .add_message (_ ("Error in" ) + " " + css_file + "\n " \
529531 + _ ("Please check the console output." ), ALERT_ICON )
530532
531-
533+ def _startup_message (self ):
534+ title = _ ("Important change(s)" )
535+ # This array holds information about new features or things that changed. They can be hidden using the dialog's checkbox.
536+ # It is important that strings are only appended to this array (not removed), otherwise some messages could get hidden unwanted.
537+ messages = [ _ ("<b>3.5.0 (LinuxCNC 2.10.0): Gmoccapy does no longer automatically retain G43 after a toolchange!</b>\n " \
538+ "Automatic reactivation of G43 is possible using a REMAP.\n " \
539+ "Examples can be found in the Gmoccapy sim configurations." ),
540+ # _("<b>3.5.1 (LinuxCNC 2.10.1): </b> Example for new feature"),
541+ ]
542+ hide_message = self .prefs .getpref ("hide_startup_messsage" , 0 , int )
543+ if hide_message < len (messages ):
544+ message = "\n \n " .join (messages [hide_message :])
545+ message += _ ('\n \n For more information see the <a href="https://linuxcnc.org/docs/html/gui/gmoccapy_release_notes.txt">release notes</a>.' )
546+
547+ dont_show = self .dialogs .show_user_message (self , message , title , checkbox = True )
548+ if dont_show :
549+ self .prefs .putpref ("hide_startup_messsage" , len (messages ), str )
532550
533551 def _get_ini_data (self ):
534552 self .get_ini_info = getiniinfo .GetIniInfo ()
0 commit comments