
# Standard library imports
import sys

# Local imports
from conda_manager.utils.qthelpers import qapplication
from conda_manager.widgets.main_window import MainWindow


def main():
    app = qapplication(sys.argv, test_time=45)
    window = MainWindow()
    window.show()
    app.exec_()


if __name__ == '__main__':
    main()


# Standard library imports
import sys

# Local imports
from conda_manager.utils.qthelpers import qapplication
from conda_manager.widgets.main_window import MainWindow


# Set Windows taskbar icon
try:
    from ctypes import windll
    windll.shell32.SetCurrentProcessExplicitAppUserModelID("conda-manager")
except AttributeError:
    pass


def main():
    app = qapplication(sys.argv, test_time=45)
    window = MainWindow()
    window.show()
    app.exec_()


if __name__ == '__main__':
    main()

Set AppUserModelID so that the app has the right icon on Windows
Set AppUserModelID so that the app has the right icon on Windows

  
  # Standard library imports
  import sys
  
  # Local imports
  from conda_manager.utils.qthelpers import qapplication
  from conda_manager.widgets.main_window import MainWindow
+ 
+ 
+ # Set Windows taskbar icon
+ try:
+     from ctypes import windll
+     windll.shell32.SetCurrentProcessExplicitAppUserModelID("conda-manager")
+ except AttributeError:
+     pass
  
  
  def main():
      app = qapplication(sys.argv, test_time=45)
      window = MainWindow()
      window.show()
      app.exec_()
  
  
  if __name__ == '__main__':
      main()
  
Set AppUserModelID so that the app has the right icon on Windows
## Code Before:

# Standard library imports
import sys

# Local imports
from conda_manager.utils.qthelpers import qapplication
from conda_manager.widgets.main_window import MainWindow


def main():
    app = qapplication(sys.argv, test_time=45)
    window = MainWindow()
    window.show()
    app.exec_()


if __name__ == '__main__':
    main()

## Instruction:
Set AppUserModelID so that the app has the right icon on Windows
## Code After:

# Standard library imports
import sys

# Local imports
from conda_manager.utils.qthelpers import qapplication
from conda_manager.widgets.main_window import MainWindow


# Set Windows taskbar icon
try:
    from ctypes import windll
    windll.shell32.SetCurrentProcessExplicitAppUserModelID("conda-manager")
except AttributeError:
    pass


def main():
    app = qapplication(sys.argv, test_time=45)
    window = MainWindow()
    window.show()
    app.exec_()


if __name__ == '__main__':
    main()
