Removed fStrings for backwards compatibility
This commit is contained in:
		
							parent
							
								
									e2b842fefd
								
							
						
					
					
						commit
						5e7d11470e
					
				@ -36,8 +36,8 @@ def update_icon():
 | 
			
		||||
    icon.icon = image
 | 
			
		||||
 | 
			
		||||
def get_image():
 | 
			
		||||
    theme = [[f"{DIR}/files/eye_light.png", f"{DIR}/files/eye_dark.png"],
 | 
			
		||||
            [f"{DIR}/files/eye_dark.png", f"{DIR}/files/eye_light.png"]]
 | 
			
		||||
    theme = [[DIR + "/files/eye_light.png", DIR + "/files/eye_dark.png"],
 | 
			
		||||
            [DIR + "/files/eye_dark.png", DIR + "/files/eye_light.png"]]
 | 
			
		||||
    return Image.open(theme[invert_icons][disable_notifs])
 | 
			
		||||
 | 
			
		||||
def generate_menu_items():   
 | 
			
		||||
@ -97,7 +97,7 @@ def parse_args():
 | 
			
		||||
    parser.add_argument("-i", "--invert_icons", action="store_true", default=False, help="Default to the dark icon for light themes")
 | 
			
		||||
    parser.add_argument("-m", "--mute", action="store_true", default=False, help="Mute notification sounds by default")
 | 
			
		||||
    parser.add_argument("-n", "--disable_notifs", action="store_true", default=False, help="Disable notifications by default")
 | 
			
		||||
    parser.add_argument("-s", "--sound", action="store", default=f"{DIR}/files/default.wav", help="Custom notification sound")
 | 
			
		||||
    parser.add_argument("-s", "--sound", action="store", default=DIR + "/files/default.wav", help="Custom notification sound")
 | 
			
		||||
    args = parser.parse_args()
 | 
			
		||||
    globals().update(args.__dict__)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user