@@ -267,6 +267,22 @@ public void SetCharacterDefault()
267267 } ) ;
268268 }
269269
270+ public void RemoveCharacterDefault ( )
271+ {
272+ Svc . Framework . RunOnTick ( ( ) =>
273+ {
274+ if ( ! PlayerHelper . IsValid )
275+ return ;
276+
277+ ulong cid = Player . CID ;
278+
279+ this . profileByName [ this . ActiveProfileName ] . CIDs . Remove ( cid ) ;
280+ this . profileByCID . Remove ( cid ) ;
281+
282+ EzConfig . Save ( ) ;
283+ } ) ;
284+ }
285+
270286 public static void DebugLog ( string message )
271287 {
272288 Svc . Log . Debug ( $ "Configuration Main: { message } ") ;
@@ -763,14 +779,17 @@ public static void Draw()
763779 ImGui . SetTooltip ( "Duplicate Profile" ) ;
764780
765781 ImGui . SameLine ( ) ;
766- using ( ImRaii . Disabled ( ImGui . GetIO ( ) . KeyCtrl ? ConfigurationMain . Instance . GetCurrentProfile . CIDs . Contains ( Player . CID ) : ConfigurationMain . Instance . DefaultConfigName == ConfigurationMain . Instance . ActiveProfileName ) )
782+ using ( ImRaii . Disabled ( ImGui . GetIO ( ) . KeyCtrl ? ConfigurationMain . Instance . GetCurrentProfile . CIDs . Contains ( Player . CID ) != ImGui . GetIO ( ) . KeyShift : ConfigurationMain . Instance . DefaultConfigName == ConfigurationMain . Instance . ActiveProfileName ) )
767783 if ( ImGuiComponents . IconButton ( FontAwesomeIcon . CheckCircle ) )
768784 if ( ImGui . GetIO ( ) . KeyCtrl )
769- ConfigurationMain . Instance . SetCharacterDefault ( ) ;
785+ if ( ImGui . GetIO ( ) . KeyShift )
786+ ConfigurationMain . Instance . RemoveCharacterDefault ( ) ;
787+ else
788+ ConfigurationMain . Instance . SetCharacterDefault ( ) ;
770789 else
771790 ConfigurationMain . Instance . SetProfileAsDefault ( ) ;
772791 if ( ImGui . IsMouseHoveringRect ( ImGui . GetItemRectMin ( ) , ImGui . GetItemRectMax ( ) ) )
773- ImGui . SetTooltip ( "Make Default\n Hold ctrl to make default for the current character" ) ;
792+ ImGui . SetTooltip ( "Make Default\n Hold ctrl to make default for the current character\n ctrl+shift to remove it as default for the current character " ) ;
774793
775794
776795 ImGui . SameLine ( ) ;
0 commit comments