Skip to content

Commit

Permalink
This fixes the Windows build.
Browse files Browse the repository at this point in the history
  • Loading branch information
ozankaraali committed May 25, 2024
1 parent 4a9808f commit 92760f2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion video_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ def mouseDoubleClickEvent(self, event):

def closeEvent(self, event):
self.save_window_settings()
self.save_config()
if self.media_player.is_playing():
self.media_player.stop()
self.hide()
Expand Down Expand Up @@ -144,6 +143,8 @@ def save_config(self):

def save_window_settings(self):
pos = self.geometry()
if self.config == None:
self.load_config()
window_positions = self.config.get("window_positions", {})
window_positions["video_player"] = {
"x": pos.x(),
Expand Down

0 comments on commit 92760f2

Please sign in to comment.