Skip to content

Commit

Permalink
Change current index of stackedLayout when profile is removed
Browse files Browse the repository at this point in the history
  • Loading branch information
bpozdena committed Aug 22, 2022
1 parent 6f64790 commit 2421210
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/OneDriveGUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -1130,6 +1130,7 @@ def remove_profile(self):
# Remove profile from main window.
combo_box_index = main_window.comboBox.findText(selected_profile_name)
main_window.comboBox.removeItem(combo_box_index)
main_window.stackedLayout.setCurrentIndex(0)
main_window.profile_status_pages.pop(selected_profile_name, None)
global_config.pop(selected_profile_name, None)
logging.info(global_config)
Expand Down

0 comments on commit 2421210

Please sign in to comment.