Changeset 377:72893c2b24d9


Ignore:
Timestamp:
12/18/12 13:03:24 (12 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Fixed the restarting (#157)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/mlx.py

    r373 r377  
    7070    config.load()
    7171
    72     if (len(sys.argv)<=1 or sys.argv[1]!="usedeflang") and config.setupLocale():
    73         restart(["usedeflang"] + (["secondary"] if secondaryInstallation else []))
     72    secondaryArgs = ["secondary"] if secondaryInstallation else []
     73    if "usedeflang" not in sys.argv and config.setupLocale():
     74        restart(["usedeflang"] + secondaryArgs)
    7475
    7576    setLanguage(programDirectory, config.getLanguage())
     
    9596
    9697    if gui.toRestart:
    97         restart()
     98        restart(secondaryArgs)
    9899
    99100#--------------------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.