mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
set window title empty on new game
also fixed small exception when aborting the open file dialog which lead to " as filename fixes #1305
This commit is contained in:
parent
d3d655da07
commit
752c91a721
@ -240,7 +240,7 @@ class QLiberationWindow(QMainWindow):
|
||||
dir=persistency._dcs_saved_game_folder,
|
||||
filter="*.liberation",
|
||||
)
|
||||
if file is not None:
|
||||
if file is not None and file[0] != "":
|
||||
game = persistency.load_game(file[0])
|
||||
GameUpdateSignal.get_instance().game_loaded.emit(game)
|
||||
|
||||
@ -282,6 +282,7 @@ class QLiberationWindow(QMainWindow):
|
||||
self.setWindowTitle(window_title)
|
||||
|
||||
def onGameGenerated(self, game: Game):
|
||||
self.updateWindowTitle()
|
||||
logging.info("On Game generated")
|
||||
self.game = game
|
||||
GameUpdateSignal.get_instance().game_loaded.emit(self.game)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user