Add Quick Use: Shift+RClick usable items when no other inventories open
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+9
-8
@@ -29,7 +29,7 @@ namespace QuickTransfer;
|
||||
[Serializable]
|
||||
public sealed class Configuration : IPluginConfiguration
|
||||
{
|
||||
public int Version { get; set; } = 3;
|
||||
public int Version { get; set; } = 4;
|
||||
|
||||
public bool Enabled { get; set; } = true;
|
||||
// Default OFF (explicitly requested).
|
||||
@@ -46,6 +46,8 @@ public sealed class Configuration : IPluginConfiguration
|
||||
public bool EnableVendorQuickSell { get; set; } = true;
|
||||
public bool AutoConfirmVendorSell { get; set; } = true;
|
||||
|
||||
public bool EnableQuickUse { get; set; } = true;
|
||||
|
||||
public void Save() => Plugin.PluginInterface.SavePluginConfig(this);
|
||||
}
|
||||
|
||||
@@ -1392,16 +1394,15 @@ public sealed unsafe class Plugin : IDalamudPlugin
|
||||
Configuration.Version = 3;
|
||||
Configuration.Save();
|
||||
}
|
||||
else if (Configuration.Version > 3)
|
||||
else if (Configuration.Version < 4)
|
||||
{
|
||||
Configuration.Version = 4;
|
||||
Configuration.Save();
|
||||
}
|
||||
else if (Configuration.Version > 4)
|
||||
{
|
||||
// If the user downgrades, don't overwrite their config; just keep their stored values.
|
||||
}
|
||||
else
|
||||
{
|
||||
// Version == 3: still ensure debug isn't accidentally on by default after updates.
|
||||
// (User can re-enable it explicitly.)
|
||||
// No auto-save here to avoid writing config every startup.
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user