-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
There were a couple of cases that weren't handled very well in the function that processes the propellant in a motor that is being loaded. First, if the loaded motor had a propellant with the same name as one in the library but different properties, it would correctly append a number to the end. However, it wouldn't check if there was already a numbered copy of the propellant with properties that match, and always just increment the number until it didn't overlap any existing propellant. This commit makes it check if the propellant matches any of the numbered copies. It also checks if there is a propellant in the library with the same properties and a different name, and asks if you'd like to merge them.
- Loading branch information
Showing
4 changed files
with
48 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
from PyQt6.QtCore import Qt | ||
|
||
FLAGS_NO_ICON = Qt.WindowType.Dialog | Qt.WindowType.CustomizeWindowHint | Qt.WindowType.WindowTitleHint | Qt.WindowType.WindowCloseButtonHint | ||
|
||
def excludeKeys(d, keys): | ||
return {k:v for k,v in d.items() if k not in keys} |